diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 2155f7bf8..f6b9aa67c 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1208,11 +1208,11 @@ namespace Flow.Launcher.ViewModel _lastQuery = query; - if (query.ActionKeyword == Plugin.Query.GlobalPluginWildcardSign) + if (string.IsNullOrEmpty(query.ActionKeyword)) { - // Wait 45 millisecond for query change in global query + // Wait 15 millisecond for query change in global query // if query changes, return so that it won't be calculated - await Task.Delay(45, _updateSource.Token); + await Task.Delay(15, _updateSource.Token); if (_updateSource.Token.IsCancellationRequested) return; } diff --git a/Flow.Launcher/ViewModel/ResultViewModel.cs b/Flow.Launcher/ViewModel/ResultViewModel.cs index 27b385805..68c794aec 100644 --- a/Flow.Launcher/ViewModel/ResultViewModel.cs +++ b/Flow.Launcher/ViewModel/ResultViewModel.cs @@ -1,4 +1,5 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Drawing.Text; using System.IO; @@ -137,7 +138,7 @@ namespace Flow.Launcher.ViewModel } } - public bool IsGlobalQuery => Result.OriginQuery.ActionKeyword == Query.GlobalPluginWildcardSign; + public bool IsGlobalQuery => string.IsNullOrEmpty(Result.OriginQuery.ActionKeyword); private bool GlyphAvailable => Glyph is not null;