mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
6e13440f1f
1. #486 2. fix #778 #763 #742 3. MVVM refactoring 4. remove IMultipleActionKeywords interface, use PluginManager directly
22 lines
456 B
C#
22 lines
456 B
C#
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();
|
|
}
|
|
}
|
|
} |