update per review

This commit is contained in:
Jeremy 2021-08-06 18:52:09 +10:00
parent 5940e33774
commit 53e305d765

View file

@ -63,23 +63,17 @@ namespace Flow.Launcher.Plugin.Explorer.Views
}
if (ActionKeyword == Query.GlobalPluginWildcardSign
&& (CurrentActionKeyword.KeywordProperty == Settings.ActionKeyword.FileContentSearchActionKeyword
|| CurrentActionKeyword.KeywordProperty == Settings.ActionKeyword.QuickAccessActionKeyword))
{
if (ActionKeyword == Query.GlobalPluginWildcardSign)
switch (CurrentActionKeyword.KeywordProperty)
{
case Settings.ActionKeyword.FileContentSearchActionKeyword:
MessageBox.Show(settingsViewModel.Context.API.GetTranslation("plugin_explorer_globalActionKeywordInvalid"));
break;
return;
case Settings.ActionKeyword.QuickAccessActionKeyword:
MessageBox.Show(settingsViewModel.Context.API.GetTranslation("plugin_explorer_quickaccess_globalActionKeywordInvalid"));
break;
return;
}
return;
}
var oldActionKeyword = CurrentActionKeyword.Keyword;
// == because of nullable
@ -92,7 +86,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);