From 0534dece0b3dce63b8d5876a0c0d150bc9258a73 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Thu, 2 Sep 2021 07:47:05 +1000 Subject: [PATCH] remove comment --- .../Views/ActionKeywordSetting.xaml.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs index cfb68206a..625668d32 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs @@ -74,8 +74,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views var oldActionKeyword = CurrentActionKeyword.Keyword; - // == because of nullable - if (Enabled == false || !settingsViewModel.IsActionKeywordAlreadyAssigned(ActionKeyword)) + if (!Enabled || !settingsViewModel.IsActionKeywordAlreadyAssigned(ActionKeyword)) { // Update View Data CurrentActionKeyword.Keyword = Enabled == true ? ActionKeyword : Query.GlobalPluginWildcardSign; @@ -84,7 +83,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views switch (Enabled) { // reset to global so it does not take up an action keyword when disabled - // not for null Enable plugin + // not for null Enable plugin case false when oldActionKeyword != Query.GlobalPluginWildcardSign: settingsViewModel.UpdateActionKeyword(CurrentActionKeyword.KeywordProperty, Query.GlobalPluginWildcardSign, oldActionKeyword);