Fix plugin install issue

This commit is contained in:
Jack251970 2025-01-05 21:16:49 +08:00
parent 07bb16c8f3
commit c907c29148

View file

@ -197,20 +197,22 @@ namespace Flow.Launcher.Plugin.PluginsManager
prgBox.Close();
prgBox = null;
});
Install(plugin, filePath);
}
else
{
await Http.DownloadAsync(plugin.UrlDownload, filePath).ConfigureAwait(false);
Install(plugin, filePath);
}
}
else
{
filePath = plugin.LocalInstallPath;
Install(plugin, filePath);
}
// check if user cancelled download before installing plugin
if (downloadCancelled)
return;
Install(plugin, filePath);
}
catch (HttpRequestException e)
{