1
0
mirror of https://github.com/SirusDoma/VoxCharger.git synced 2024-11-28 01:10:49 +01:00

Fix import counter

This commit is contained in:
SirusDoma 2020-04-19 19:39:32 +07:00
parent 1c3d063003
commit c755d49175

View File

@ -305,11 +305,11 @@ namespace VoxCharger
var action = new Action(() => var action = new Action(() =>
{ {
var directories = Directory.GetDirectories(target); var directories = Directory.GetDirectories(target);
int current = 1; int current = 0;
foreach (string dir in directories) foreach (string dir in directories)
{ {
loader.SetStatus($"Processing {Path.GetFileName(dir)}.."); loader.SetStatus($"Processing {Path.GetFileName(dir)}..");
loader.SetProgress((current / (float)directories.Length) * 100f); loader.SetProgress((current + 1 / (float)directories.Length) * 100f);
var files = Directory.GetFiles(dir, "*.ksh"); var files = Directory.GetFiles(dir, "*.ksh");
if (files.Length == 0) if (files.Length == 0)