Skip to content

Commit 539a852

Browse files
committed
Improve logic
1 parent aece803 commit 539a852

File tree

1 file changed

+9
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Sys

1 file changed

+9
-1
lines changed

Plugins/Flow.Launcher.Plugin.Sys/Main.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,15 @@ private List<Result> Commands(Query query)
497497
Glyph = new GlyphInfo (FontFamily:"/Resources/#Segoe Fluent Icons", Glyph:"\ue790"),
498498
Action = c =>
499499
{
500-
_context.API.ChangeQuery($"{query.ActionKeyword}{ (string.IsNullOrEmpty(query.ActionKeyword) ? string.Empty : Plugin.Query.ActionKeywordSeparator)}{ThemeSelector.Keyword}{Plugin.Query.ActionKeywordSeparator}");
500+
if (string.IsNullOrEmpty(query.ActionKeyword))
501+
{
502+
_context.API.ChangeQuery($"{ThemeSelector.Keyword}{Plugin.Query.ActionKeywordSeparator}");
503+
}
504+
else
505+
{
506+
_context.API.ChangeQuery($"{query.ActionKeyword}{Plugin.Query.ActionKeywordSeparator}{ThemeSelector.Keyword}{Plugin.Query.ActionKeywordSeparator}");
507+
508+
}
501509
return false;
502510
}
503511
}

0 commit comments

Comments
 (0)