mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(CreateEntryCallback): set total progress value gimmick.
This commit is contained in:
parent
f15676d0a1
commit
cb8dbb229c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user