]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Fix total value in SetProgressBar API.
authorAlexander Neu <mail@alexanderneu.de>
Mon, 29 Sep 2014 10:50:51 +0000 (12:50 +0200)
committerAlexander Neu <mail@alexanderneu.de>
Mon, 29 Sep 2014 10:50:51 +0000 (12:50 +0200)
atom/browser/native_window_views.cc

index 08c23cc3d153759932d6cba0a63f782e452c8e3c..60eb70a71c5e2d428489317d2f052efb6dee133a 100644 (file)
@@ -499,7 +499,7 @@ void NativeWindowViews::SetProgressBar(double progress) {
   } else if (progress >= 0) {
     taskbar->SetProgressValue(frame,
                               static_cast<int>(progress * 100),
-                              progress);
+                              100);
   }
 #elif defined(USE_X11)
   if (unity::IsRunning()) {