Skip to content

Commit 53e305d

Browse files
committed
update per review
1 parent 5940e33 commit 53e305d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,17 @@ private void OnDoneButtonClick(object sender, RoutedEventArgs e)
6363
}
6464

6565

66-
if (ActionKeyword == Query.GlobalPluginWildcardSign
67-
&& (CurrentActionKeyword.KeywordProperty == Settings.ActionKeyword.FileContentSearchActionKeyword
68-
|| CurrentActionKeyword.KeywordProperty == Settings.ActionKeyword.QuickAccessActionKeyword))
69-
{
66+
if (ActionKeyword == Query.GlobalPluginWildcardSign)
7067
switch (CurrentActionKeyword.KeywordProperty)
7168
{
7269
case Settings.ActionKeyword.FileContentSearchActionKeyword:
7370
MessageBox.Show(settingsViewModel.Context.API.GetTranslation("plugin_explorer_globalActionKeywordInvalid"));
74-
break;
71+
return;
7572
case Settings.ActionKeyword.QuickAccessActionKeyword:
7673
MessageBox.Show(settingsViewModel.Context.API.GetTranslation("plugin_explorer_quickaccess_globalActionKeywordInvalid"));
77-
break;
74+
return;
7875
}
7976

80-
return;
81-
}
82-
8377
var oldActionKeyword = CurrentActionKeyword.Keyword;
8478

8579
// == because of nullable
@@ -92,7 +86,7 @@ private void OnDoneButtonClick(object sender, RoutedEventArgs e)
9286
switch (Enabled)
9387
{
9488
// reset to global so it does not take up an action keyword when disabled
95-
// not for null Enable plugin
89+
// not for null Enable plugin
9690
case false when oldActionKeyword != Query.GlobalPluginWildcardSign:
9791
settingsViewModel.UpdateActionKeyword(CurrentActionKeyword.KeywordProperty,
9892
Query.GlobalPluginWildcardSign, oldActionKeyword);

0 commit comments

Comments
 (0)