mac: Fix dock progress bar doesn't show after hiding, fixes #658.

This commit is contained in:
Haojian Wu 2014-09-21 18:56:03 +08:00
parent 2768b1ff64
commit fa8e158587

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