Merge pull request #659 from hokein/master
mac: Fix dock progress bar doesn't show after hiding, fixes #658.
This commit is contained in:
commit
50ea0f0b45
1 changed files with 3 additions and 0 deletions
|
@ -576,8 +576,11 @@ void NativeWindowMac::SetProgressBar(double progress) {
|
|||
if (progress < 0) {
|
||||
[progress_indicator setHidden:YES];
|
||||
} else if (progress > 1) {
|
||||
[progress_indicator setHidden:NO];
|
||||
[progress_indicator setIndeterminate:YES];
|
||||
[progress_indicator setDoubleValue:1];
|
||||
} else {
|
||||
[progress_indicator setHidden:NO];
|
||||
[progress_indicator setDoubleValue:progress];
|
||||
}
|
||||
[dock_tile display];
|
||||
|
|
Loading…
Reference in a new issue