File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Plugins/Flow.Launcher.Plugin.PluginsManager Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public List<Result> Query(Query query)
50
50
var search = query . Search . ToLower ( ) ;
51
51
52
52
if ( string . IsNullOrWhiteSpace ( search ) )
53
- return Settings . HotKeys ;
53
+ return pluginManager . GetDefaultHotKeys ( ) ;
54
54
55
55
if ( ( DateTime . Now - _lastUpdateTime ) . TotalHours > 12 ) // 12 hours
56
56
{
@@ -66,7 +66,7 @@ public List<Result> Query(Query query)
66
66
var s when s . StartsWith ( Settings . HotKeyInstall ) => pluginManager . RequestInstallOrUpdate ( s ) ,
67
67
var s when s . StartsWith ( Settings . HotkeyUninstall ) => pluginManager . RequestUninstall ( s ) ,
68
68
var s when s . StartsWith ( Settings . HotkeyUpdate ) => pluginManager . RequestUpdate ( s ) ,
69
- _ => Settings . HotKeys . Where ( hotkey =>
69
+ _ => pluginManager . GetDefaultHotKeys ( ) . Where ( hotkey =>
70
70
{
71
71
hotkey . Score = StringMatcher . FuzzySearch ( search , hotkey . Title ) . Score ;
72
72
return hotkey . Score > 0 ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ internal async Task DownloadManifest()
19
19
{
20
20
try
21
21
{
22
- var jsonStream = await Http . GetStreamAsync ( "https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/main/plugins.json" )
22
+ await using var jsonStream = await Http . GetStreamAsync ( "https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/main/plugins.json" )
23
23
. ConfigureAwait ( false ) ;
24
24
25
25
UserPlugins = await JsonSerializer . DeserializeAsync < List < UserPlugin > > ( jsonStream ) . ConfigureAwait ( false ) ;
@@ -33,4 +33,4 @@ internal async Task DownloadManifest()
33
33
34
34
}
35
35
}
36
- }
36
+ }
You can’t perform that action at this time.
0 commit comments