mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +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)
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user