diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs index c331c4985..5a589f24f 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs @@ -21,13 +21,10 @@ namespace Flow.Launcher.Plugin.Explorer private Settings Settings { get; set; } - private SettingsViewModel ViewModel { get; set; } - - public ContextMenu(PluginInitContext context, Settings settings, SettingsViewModel vm) + public ContextMenu(PluginInitContext context, Settings settings) { Context = context; Settings = settings; - ViewModel = vm; } public List LoadContextMenus(Result selectedResult) @@ -84,7 +81,7 @@ namespace Flow.Launcher.Plugin.Explorer Context.API.GetTranslation("plugin_explorer_addfilefoldersuccess_detail"), Constants.ExplorerIconImageFullPath); - ViewModel.Save(); + Context.API.SaveSettingJsonStorage(); return true; }, @@ -108,7 +105,7 @@ namespace Flow.Launcher.Plugin.Explorer Context.API.GetTranslation("plugin_explorer_removefilefoldersuccess_detail"), Constants.ExplorerIconImageFullPath); - ViewModel.Save(); + Context.API.SaveSettingJsonStorage(); return true; }, diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs index 54292d550..58b5b56b6 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs @@ -38,8 +38,7 @@ namespace Flow.Launcher.Plugin.Explorer FillQuickAccessLinkNames(); viewModel = new SettingsViewModel(context, Settings); - - contextMenu = new ContextMenu(Context, Settings, viewModel); + contextMenu = new ContextMenu(Context, Settings); searchManager = new SearchManager(Settings, Context); ResultManager.Init(Context, Settings);