(CreateEntryCallback): set total progress value gimmick.

This commit is contained in:
morkt 2014-07-29 19:05:32 +04:00
parent f15676d0a1
commit cb8dbb229c

View File

@ -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;