From 2d32bc981450708838f5c7e84d1c5e9d1e262b42 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 3 Jul 2021 16:33:29 +1000 Subject: [PATCH] fix method typo --- Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs | 4 ++-- .../Views/ExplorerSettings.xaml.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs index 985cb2fd9..13f938dea 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs @@ -58,7 +58,7 @@ namespace Flow.Launcher.Plugin.Explorer _ => throw new ArgumentOutOfRangeException(nameof(actionKeyword), actionKeyword, "Unexpected property") }; - internal bool? GetActionKeywordEnable(ActionKeyword actionKeyword) => actionKeyword switch + internal bool? GetActionKeywordEnabled(ActionKeyword actionKeyword) => actionKeyword switch { ActionKeyword.SearchActionKeyword => SearchActionKeywordEnabled, ActionKeyword.PathSearchActionKeyword => PathSearchKeywordEnabled, @@ -66,7 +66,7 @@ namespace Flow.Launcher.Plugin.Explorer _ => null }; - internal void SetActionKeywordEnable(ActionKeyword actionKeyword, bool enable) => _ = actionKeyword switch + internal void SetActionKeywordEnabled(ActionKeyword actionKeyword, bool enable) => _ = actionKeyword switch { ActionKeyword.SearchActionKeyword => SearchActionKeywordEnabled = enable, ActionKeyword.PathSearchActionKeyword => PathSearchKeywordEnabled = enable, diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs index ffd5b618a..0c3799cee 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs @@ -337,8 +337,8 @@ namespace Flow.Launcher.Plugin.Explorer.Views public bool? Enabled { - get => _settings.GetActionKeywordEnable(KeywordProperty); - set => _settings.SetActionKeywordEnable(KeywordProperty, + get => _settings.GetActionKeywordEnabled(KeywordProperty); + set => _settings.SetActionKeywordEnabled(KeywordProperty, value ?? throw new ArgumentException("Unexpected null value")); } }