This commit is contained in:
bao-qian
2016-04-26 22:45:31 +01:00
parent 57c33fe693
commit e96bd5a0e7
6 changed files with 12 additions and 12 deletions

View File

@@ -20,11 +20,11 @@ namespace Wox.Plugin.CMD
private readonly KeyboardSimulator keyboardSimulator = new KeyboardSimulator(new InputSimulator());
private readonly CMDHistory _settings;
private readonly PluginSettingsStorage<CMDHistory> _storage;
private readonly PluginJsonStorage<CMDHistory> _storage;
public CMD()
{
_storage = new PluginSettingsStorage<CMDHistory>();
_storage = new PluginJsonStorage<CMDHistory>();
_settings = _storage.Load();
}

View File

@@ -26,11 +26,11 @@ namespace Wox.Plugin.Everything
private PluginInitContext _context;
private readonly Settings _settings;
private readonly PluginSettingsStorage<Settings> _storage;
private readonly PluginJsonStorage<Settings> _storage;
public Main()
{
_storage = new PluginSettingsStorage<Settings>();
_storage = new PluginJsonStorage<Settings>();
_settings = _storage.Load();
}

View File

@@ -15,11 +15,11 @@ namespace Wox.Plugin.Folder
private PluginInitContext context;
private readonly Settings _settings;
private readonly PluginSettingsStorage<Settings> _storage;
private readonly PluginJsonStorage<Settings> _storage;
public FolderPlugin()
{
_storage = new PluginSettingsStorage<Settings>();
_storage = new PluginJsonStorage<Settings>();
_settings = _storage.Load();
}

View File

@@ -32,11 +32,11 @@ namespace Wox.Plugin.Program
private static ProgramIndexCache _cache;
private static BinaryStorage<ProgramIndexCache> _cacheStorage;
private static Settings _settings;
private readonly PluginSettingsStorage<Settings> _settingsStorage;
private readonly PluginJsonStorage<Settings> _settingsStorage;
public Programs()
{
_settingsStorage = new PluginSettingsStorage<Settings>();
_settingsStorage = new PluginJsonStorage<Settings>();
_settings = _settingsStorage.Load();
_cacheStorage = new BinaryStorage<ProgramIndexCache>();
_cache = _cacheStorage.Load();

View File

@@ -13,12 +13,12 @@ namespace Wox.Plugin.WebSearch
{
public PluginInitContext Context { get; private set; }
private readonly PluginSettingsStorage<Settings> _storage;
private readonly PluginJsonStorage<Settings> _storage;
private readonly Settings _settings;
public WebSearchPlugin()
{
_storage = new PluginSettingsStorage<Settings>();
_storage = new PluginJsonStorage<Settings>();
_settings = _storage.Load();
}