[PATCH] Limit progress bar amount to 1.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/gui.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py
index ebd0085..0ef7ced 100755
--- a/pyanaconda/gui.py
+++ b/pyanaconda/gui.py
@@ -478,6 +478,9 @@ class ProgressWindow:
             delta -= 0.05
 
     def set (self, amount):
+        if amount > self.total:
+            amount = self.total
+
         # only update widget if we've changed by 5% or our timeout has
         # expired
         curval = self.progress.get_fraction()
-- 
1.7.2.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux