mirror of
https://github.com/SirusDoma/VoxCharger.git
synced 2024-11-27 17:00:51 +01:00
Fix import counter
This commit is contained in:
parent
1c3d063003
commit
c755d49175
@ -305,11 +305,11 @@ namespace VoxCharger
|
||||
var action = new Action(() =>
|
||||
{
|
||||
var directories = Directory.GetDirectories(target);
|
||||
int current = 1;
|
||||
int current = 0;
|
||||
foreach (string dir in directories)
|
||||
{
|
||||
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");
|
||||
if (files.Length == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user