jjw24 / Wox

Launcher for Windows, an alternative to Alfred and Launchy.
http://wox.one
MIT License
154 stars 12 forks source link

Enable manual plugin data reload #50

Closed jjw24 closed 5 years ago

jjw24 commented 5 years ago

For Plugins such as Program and BrowserBookmarks or any plugin that would persist data in memory, will not have new content refreshed until next Wox restart.

This means users installed a new program, added a new bookmark etc, will not be able to see these new content until they restart Wox.

This feature is:

  1. Providing a command for user to manual reload all plugin's data (provided the plugin has implemented this feature) via Plugin.Sys
  2. Allowing plugins to implement IReloadable and define their own way of reloading in memory data that will be called when user use the command above.
  3. Added into BrowserBookmarks and Programs plugins.

Requested in: https://github.com/Wox-launcher/Wox.Plugin.BrowserBookmark/issues/16 https://github.com/Wox-launcher/Wox.Plugin.BrowserBookmark/issues/15