We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9c662 commit c18ae41Copy full SHA for c18ae41
Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs
@@ -143,6 +143,11 @@ internal async Task InstallOrUpdateAsync(UserPlugin plugin)
143
144
try
145
{
146
+ if (File.Exists(filePath))
147
+ {
148
+ File.Delete(filePath);
149
+ }
150
+
151
await Http.DownloadAsync(plugin.UrlDownload, filePath).ConfigureAwait(false);
152
153
Install(plugin, filePath);
@@ -245,6 +250,11 @@ where existingPlugin.Metadata.Version.CompareTo(pluginFromManifest.Version) <
245
250
246
251
_ = Task.Run(async delegate
247
252
253
+ if (File.Exists(downloadToFilePath))
254
255
+ File.Delete(downloadToFilePath);
256
257
248
258
await Http.DownloadAsync(x.PluginNewUserPlugin.UrlDownload, downloadToFilePath)
249
259
.ConfigureAwait(false);
260
0 commit comments