From fc2a18e5e7c5af39ce92dc121dd49f3c0f1fba82 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Mon, 1 Feb 2021 14:02:22 +0100 Subject: [PATCH] Tiny improvement to importing progress bar. Not sane, but at least not 420 / 69 objects extracted. --- Penumbra/Importer/TexToolsImport.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Penumbra/Importer/TexToolsImport.cs b/Penumbra/Importer/TexToolsImport.cs index cd322d6b..91b5b02d 100644 --- a/Penumbra/Importer/TexToolsImport.cs +++ b/Penumbra/Importer/TexToolsImport.cs @@ -21,7 +21,7 @@ namespace Penumbra.Importer public ImporterState State { get; private set; } - public long TotalProgress { get; private set; } + public long TotalProgress { get; private set; } = 0; public long CurrentProgress { get; private set; } public float Progress @@ -282,7 +282,7 @@ namespace Penumbra.Importer // haha allocation go brr var wtf = mods.ToList(); - TotalProgress = wtf.LongCount(); + TotalProgress += wtf.LongCount(); // Extract each SimpleMod into the new mod folder foreach( var simpleMod in wtf )