From cb8dbb229c348d8041ba142a37616bdebb3bbf2c Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 29 Jul 2014 19:05:32 +0400 Subject: [PATCH] (CreateEntryCallback): set total progress value gimmick. --- GarCreate.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GarCreate.cs b/GarCreate.cs index 54921cd4..07c63c41 100644 --- a/GarCreate.cs +++ b/GarCreate.cs @@ -130,6 +130,12 @@ namespace GARbro.GUI { if (m_progress_dialog.CancellationPending) throw new OperationCanceledException(); + if (null == entry && null == msg) + { + m_total = i; + m_progress_dialog.ReportProgress (0); + return ArchiveOperation.Continue; + } int progress = i*100/m_total; if (progress > 100) progress = 100;