patch for UI

This commit is contained in:
2022-06-02 13:48:56 +03:00
parent 1ae48a100e
commit 3e01e75de3
21 changed files with 265 additions and 359 deletions

View File

@@ -259,16 +259,13 @@ namespace PluginManager.Others
foreach (ZipArchiveEntry entry in archive.Entries)
{
if (entry.FullName.EndsWith("/"))
{
currentZIPFile++;
Directory.CreateDirectory(Path.Combine(folder, entry.FullName));
}
else
{
entry.ExtractToFile(Path.Combine(folder, entry.FullName), true);
currentZIPFile++;
}
else
try { entry.ExtractToFile(Path.Combine(folder, entry.FullName), true); }
catch { }
currentZIPFile++;
await Task.Delay(10);
progress.Report((float)currentZIPFile / totalZIPFiles * 100);
}