mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
update per review
This commit is contained in:
parent
5940e33774
commit
53e305d765
1 changed files with 4 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue