Flow.Launcher/Plugins/Flow.Launcher.Plugin.PluginsManager/ViewModels/SettingsViewModel.cs

26 lines
674 B
C#

using Flow.Launcher.Infrastructure.Storage;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Flow.Launcher.Plugin.PluginsManager.ViewModels
{
internal class SettingsViewModel
{
private readonly PluginJsonStorage<Settings> storage;
internal Settings Settings { get; set; }
internal PluginInitContext Context { get; set; }
public SettingsViewModel(PluginInitContext context, Settings settings)
{
Context = context;
storage = new PluginJsonStorage<Settings>();
Settings = settings;
}
public void Save()
{
storage.Save();
}
}
}