mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +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)
|
if (m_progress_dialog.CancellationPending)
|
||||||
throw new OperationCanceledException();
|
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;
|
int progress = i*100/m_total;
|
||||||
if (progress > 100)
|
if (progress > 100)
|
||||||
progress = 100;
|
progress = 100;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user