File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Plugins/Flow.Launcher.Plugin.Sys Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,19 @@ public List<Result> Query(Query query)
56
56
return _themeSelector . Query ( query ) ;
57
57
}
58
58
59
- var commands = Commands ( ) ;
59
+ var commands = Commands ( query ) ;
60
60
var results = new List < Result > ( ) ;
61
+ var isEmptyQuery = string . IsNullOrWhiteSpace ( query . Search ) ;
61
62
foreach ( var c in commands )
62
63
{
63
64
var command = _settings . Commands . First ( x => x . Key == c . Title ) ;
64
65
c . Title = command . Name ;
65
66
c . SubTitle = command . Description ;
67
+ if ( isEmptyQuery )
68
+ {
69
+ results . Add ( c ) ;
70
+ continue ;
71
+ }
66
72
67
73
// Match from localized title & localized subtitle & keyword
68
74
var titleMatch = _context . API . FuzzySearch ( query . Search , c . Title ) ;
@@ -174,7 +180,7 @@ private static unsafe bool EnableShutdownPrivilege()
174
180
}
175
181
}
176
182
177
- private List < Result > Commands ( )
183
+ private List < Result > Commands ( Query query )
178
184
{
179
185
var results = new List < Result > ( ) ;
180
186
var recycleBinFolder = "shell:RecycleBinFolder" ;
You can’t perform that action at this time.
0 commit comments