mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix an unintended text error
add async await to download manifest task remove unused encoding name for new GetStreamAsync in Http fix unintened text error
This commit is contained in:
parent
f0267475f5
commit
5da8259228
3 changed files with 3 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ namespace Flow.Launcher.Infrastructure.Http
|
|||
return content;
|
||||
}
|
||||
|
||||
public static async Task<Stream> GetStreamAsync([NotNull] string url, string encoding = "UTF-8")
|
||||
public static async Task<Stream> GetStreamAsync([NotNull] string url)
|
||||
{
|
||||
Log.Debug($"|Http.Get|Url <{url}>");
|
||||
var request = WebRequest.CreateHttp(url);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Flow.Launcher.Plugin.PluginsManager.Models
|
|||
internal List<UserPlugin> UserPlugins { get; private set; }
|
||||
internal PluginsManifest()
|
||||
{
|
||||
Task.Run(() => DownloadManifest()).Wait();
|
||||
Task.Run(async () => await DownloadManifest()).Wait();
|
||||
}
|
||||
|
||||
internal async Task DownloadManifest()
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
|||
internal string HotkeyUpdate { get; set; } = "update";
|
||||
|
||||
internal readonly string icoPath = "Images\\pluginsmanager.png";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue