Add reload call for Programs plugin

This commit is contained in:
Jeremy Wu
2019-10-06 13:15:06 +11:00
parent 1c015e31f1
commit 9e69d01db7

View File

@@ -13,7 +13,7 @@ using Stopwatch = Wox.Infrastructure.Stopwatch;
namespace Wox.Plugin.Program
{
public class Main : ISettingProvider, IPlugin, IPluginI18n, IContextMenu, ISavable
public class Main : ISettingProvider, IPlugin, IPluginI18n, IContextMenu, ISavable, IReloadable
{
private static readonly object IndexLock = new object();
private static Win32[] _win32s;
@@ -145,5 +145,13 @@ namespace Wox.Plugin.Program
}
return hide;
}
public void ReloadData()
{
Task.Run(() =>
{
IndexPrograms();
});
}
}
}