Commit bf1e257d authored by Cédric Bellegarde's avatar Cédric Bellegarde

Revert "Allow progress to decrease in ProgressBar"

This reverts commit be3911c9.
parent e76840ac
Pipeline #49912 passed with stage
in 7 minutes
......@@ -74,14 +74,12 @@ class ProgressBar(Gtk.ProgressBar):
self.__progress_running = False
return
current = self.get_fraction()
# Compute a smoothly progress
if self.__fraction < 1:
progress = (self.__fraction - current) / 10
else:
progress = 0.01
# Apply new fraction with smoothly effect
Gtk.ProgressBar.set_fraction(self, current + progress)
# Call next update
if current < self.__fraction:
Gtk.ProgressBar.set_fraction(self, current + progress)
if current < 1.0:
GLib.timeout_add(10, self.__progress_update, caller)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment