fix unexpected empty string

This commit is contained in:
Kevin Zhang 2021-07-03 12:43:38 +08:00
parent 0c3a37eb70
commit 428efb1cd0

View file

@ -44,7 +44,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
// one of it is enabled
var keyword = Settings.EnabledSearchActionKeyword ? Settings.SearchActionKeyword : Settings.PathSearchActionKeyword;
keyword = keyword == Query.GlobalPluginWildcardSign ? string.Empty : keyword + "";
keyword = keyword == Query.GlobalPluginWildcardSign ? string.Empty : keyword + " ";
string changeTo = path.EndsWith(Constants.DirectorySeperator) ? path : path + Constants.DirectorySeperator;
Context.API.ChangeQuery($"{keyword}{changeTo}");