PowerToys/Plugins/Wox.Plugin.WebSearch/SettingsViewModel.cs

22 lines
456 B
C#
Raw Normal View History

using Wox.Infrastructure.Storage;
namespace Wox.Plugin.WebSearch
{
public class SettingsViewModel
{
private readonly JsonStrorage<Settings> _storage;
public SettingsViewModel()
{
_storage = new PluginJsonStorage<Settings>();
Settings = _storage.Load();
}
public Settings Settings { get; set; }
public void Save()
{
_storage.Save();
}
}
}