Re: [PATCH] Limit progress bar amount to 1.0

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

 



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

I like this better than the first one.  What's the behavior you are
seeing without it?

- Chris

_______________________________________________
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