This commit is contained in:
2022-05-22 19:21:26 +03:00
parent 96b681bbda
commit c7ae9202e6
10 changed files with 303 additions and 10 deletions

View File

@@ -244,7 +244,7 @@ namespace PluginManager.Others
/// <param name="zip">The zip location</param>
/// <param name="folder">The target location</param>
/// <returns></returns>
public static async Task ExtractArchive(string zip, string folder, IProgress<double> progress)
public static async Task ExtractArchive(string zip, string folder, IProgress<float> progress)
{
if (!Directory.Exists(folder))
Directory.CreateDirectory(folder);
@@ -270,7 +270,7 @@ namespace PluginManager.Others
}
await Task.Delay(10);
progress.Report((double)currentZIPFile / totalZIPFiles * 100);
progress.Report((float)currentZIPFile / totalZIPFiles * 100);
}
}
}