From fa8e158587de7c2887c92df0dd286a75a7cd83ca Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Sun, 21 Sep 2014 18:56:03 +0800 Subject: [PATCH] mac: Fix dock progress bar doesn't show after hiding, fixes #658. --- atom/browser/native_window_mac.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index c5fd5522d6d2..0c4eec816c0c 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -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];