File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Plugins/Flow.Launcher.Plugin.PluginsManager/Models Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,19 @@ namespace Flow.Launcher.Plugin.PluginsManager.Models
10
10
internal class PluginsManifest
11
11
{
12
12
internal List < UserPlugin > UserPlugins { get ; private set ; }
13
+
13
14
internal PluginsManifest ( )
14
15
{
15
- DownloadManifest ( ) ;
16
+ DownloadManifest ( ) . Wait ( ) ;
16
17
}
17
18
18
- private void DownloadManifest ( )
19
+ private async Task DownloadManifest ( )
19
20
{
20
21
var json = string . Empty ;
21
22
try
22
23
{
23
- var t = Task . Run (
24
- async ( ) =>
25
- json = await Http . Get ( "https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/main/plugins.json" ) ) ;
26
-
27
- t . Wait ( ) ;
24
+ json = await Http . Get (
25
+ "https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.PluginsManifest/main/plugins.json" ) ;
28
26
29
27
UserPlugins = JsonConvert . DeserializeObject < List < UserPlugin > > ( json ) ;
30
28
}
@@ -34,7 +32,6 @@ private void DownloadManifest()
34
32
35
33
UserPlugins = new List < UserPlugin > ( ) ;
36
34
}
37
-
38
35
}
39
36
}
40
- }
37
+ }
You can’t perform that action at this time.
0 commit comments