From d807b21eaca54d394f62186c28fcf059c2c7bb83 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 13 Jun 2021 17:53:55 +1000 Subject: [PATCH] remove obsolete settings class --- .../Views/ActionKeywordSetting.xaml.cs | 6 +----- .../Views/ExplorerSettings.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs index 9d7f08e69..18703e5ea 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs @@ -31,20 +31,16 @@ namespace Flow.Launcher.Plugin.Explorer.Views public bool? Enabled { get; set; } - - private Settings settings; private string _actionKeyword; public Visibility Visible => CurrentActionKeyword.Enabled is not null ? Visibility.Visible : Visibility.Collapsed; public ActionKeywordSetting(SettingsViewModel settingsViewModel, - ActionKeywordView selectedActionKeyword, Settings settings) + ActionKeywordView selectedActionKeyword) { this.settingsViewModel = settingsViewModel; - this.settings = settings; - CurrentActionKeyword = selectedActionKeyword; ActionKeyword = selectedActionKeyword.Keyword; diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs index aa36f4b54..26a53f7fb 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs @@ -193,7 +193,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views var selectedActionKeyword = lbxActionKeywords.SelectedItem as ActionKeywordView; var actionKeywordWindow = new ActionKeywordSetting(viewModel, - selectedActionKeyword, viewModel.Settings); + selectedActionKeyword); actionKeywordWindow.ShowDialog();