mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-06-06 21:49:00 +08:00
(CreateEntryCallback): set total progress value gimmick.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user