mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
remove storage dependency from jsonstorage
This commit is contained in:
@@ -132,9 +132,8 @@ namespace Wox.Plugin.WebSearch
|
||||
|
||||
public void Init(PluginInitContext context)
|
||||
{
|
||||
|
||||
var pluginDirectory = context.CurrentPluginMetadata.PluginDirectory;
|
||||
_context = context;
|
||||
var pluginDirectory = _context.CurrentPluginMetadata.PluginDirectory;
|
||||
var bundledImagesDirectory = Path.Combine(pluginDirectory, Images);
|
||||
ImagesDirectory = Path.Combine(_context.CurrentPluginMetadata.PluginDirectory, Images);
|
||||
Helper.ValidateDataDirectory(bundledImagesDirectory, ImagesDirectory);
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Wox.Plugin.WebSearch
|
||||
{
|
||||
public class SettingsViewModel
|
||||
{
|
||||
private readonly JsonStrorage<Settings> _storage;
|
||||
private readonly PluginJsonStorage<Settings> _storage;
|
||||
|
||||
public SettingsViewModel()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user