mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
29 lines
650 B
C#
29 lines
650 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using Wox.Infrastructure.Storage;
|
|||
|
|
using Wox.Infrastructure.UserSettings;
|
|||
|
|
|
|||
|
|
namespace Wox.Plugin.Caculator.ViewModels
|
|||
|
|
{
|
|||
|
|
public class SettingsViewModel : BaseModel, ISavable
|
|||
|
|
{
|
|||
|
|
private readonly PluginJsonStorage<Settings> _storage;
|
|||
|
|
|
|||
|
|
public SettingsViewModel()
|
|||
|
|
{
|
|||
|
|
_storage = new PluginJsonStorage<Settings>();
|
|||
|
|
Settings = _storage.Load();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public Settings Settings { get; set; }
|
|||
|
|
|
|||
|
|
public void Save()
|
|||
|
|
{
|
|||
|
|
_storage.Save();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|