mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add IReloadable interface and method
This commit is contained in:
parent
bf12b127ac
commit
1c015e31f1
1 changed files with 8 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ using Wox.Plugin.SharedCommands;
|
|||
|
||||
namespace Wox.Plugin.BrowserBookmark
|
||||
{
|
||||
public class Main : IPlugin
|
||||
public class Main : IPlugin, IReloadable
|
||||
{
|
||||
private PluginInitContext context;
|
||||
|
||||
|
|
@ -48,5 +48,12 @@ namespace Wox.Plugin.BrowserBookmark
|
|||
}
|
||||
}).ToList();
|
||||
}
|
||||
|
||||
public void ReloadData()
|
||||
{
|
||||
cachedBookmarks.Clear();
|
||||
|
||||
cachedBookmarks = Bookmarks.LoadAllBookmarks();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue