Code cleanup
This commit is contained in:
parent
36e5d510bc
commit
84a321112b
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ namespace CreamInstaller
|
|||
private int CompleteOperationsCount;
|
||||
public void UpdateProgress(int progress)
|
||||
{
|
||||
int value = (int)((float)((float)CompleteOperationsCount / (float)OperationsCount) * 100) + (progress / OperationsCount);
|
||||
int value = (int)((float)(CompleteOperationsCount / (float)OperationsCount) * 100) + (progress / OperationsCount);
|
||||
if (value < userProgressBar.Value) { return; }
|
||||
userProgressBar.Value = value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue