Cyberduck Mountain Duck CLI

Changeset 42560


Ignore:
Timestamp:
Aug 31, 2017 12:48:50 PM (10 months ago)
Author:
Jöran Malek
Message:

Fix overflow exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/windows/src/main/csharp/ch/cyberduck/ui/winforms/TransferForm.cs

    r41817 r42560  
    309309                else
    310310                {
     311                                        var progressPercentage = progress / (double)maximum;
     312                                        var progressPercentageInt = (int)Math.Round(progressPercentage * 100);
    311313                                        TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress);
    312                                         TaskbarManager.Instance.SetProgressValue((int)progress, (int)maximum);
     314                                        TaskbarManager.Instance.SetProgressValue(progressPercentageInt, 100);
    313315                }
    314316            }
Note: See TracChangeset for help on using the changeset viewer.
swiss made software