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