mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
22 lines
461 B
C#
22 lines
461 B
C#
using Wox.Infrastructure.Storage;
|
|
|
|
namespace Wox.Plugin.WebSearch
|
|
{
|
|
public class SettingsViewModel
|
|
{
|
|
private readonly PluginJsonStorage<Settings> _storage;
|
|
|
|
public SettingsViewModel()
|
|
{
|
|
_storage = new PluginJsonStorage<Settings>();
|
|
Settings = _storage.Load();
|
|
}
|
|
|
|
public Settings Settings { get; set; }
|
|
|
|
public void Save()
|
|
{
|
|
_storage.Save();
|
|
}
|
|
}
|
|
} |