Merge pull request #659 from hokein/master

mac: Fix dock progress bar doesn't show after hiding, fixes #658.
This commit is contained in:
Cheng Zhao 2014-09-22 20:52:32 +08:00
commit 50ea0f0b45

View file

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