Save when exit

1. fix image cache
2. fix save when exit since destructor won't be called
3. fix #583 #582 (partially)  #581 (partially)  #580
This commit is contained in:
bao-qian
2016-05-02 22:37:01 +01:00
parent a7a34ac6b2
commit c6aff8424c
12 changed files with 65 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ using Wox.Infrastructure.Storage;
namespace Wox.Plugin.Folder
{
public class FolderPlugin : IPlugin, ISettingProvider, IPluginI18n
public class FolderPlugin : IPlugin, ISettingProvider, IPluginI18n, ISavable
{
private static List<string> driverNames;
private PluginInitContext context;
@@ -23,7 +23,7 @@ namespace Wox.Plugin.Folder
_settings = _storage.Load();
}
~FolderPlugin()
public void Save()
{
_storage.Save();
}