mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-03-22 01:44:33 -05:00
Fix progress bar label % showing 0
int / int when x/y < 0 will always show 0 when dividing raw ints :P
This commit is contained in:
parent
c04013c155
commit
d3d01ac4e7
|
|
@ -48,7 +48,7 @@ private static void GARC_UnpackProgressed(object sender, GARC.UnpackProgressedEv
|
|||
if (Progress.InvokeRequired) Progress.Invoke((MethodInvoker)(() => Progress.PerformStep()));
|
||||
else Progress.PerformStep();
|
||||
|
||||
string update = $"{e.Current / e.Total:P2} - {e.Current}/{e.Total}";
|
||||
string update = $"{((double)e.Current / e.Total):P2} - {e.Current}/{e.Total}";
|
||||
if (Label.InvokeRequired)
|
||||
{
|
||||
Label.Invoke((MethodInvoker)delegate { Label.Text = update; });
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user