mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 04:09:39 +01:00
bb/ui/hob: prevent label on progress bar from changing rapidly when loading
Fixes [YOCTO #1240] (Bitbake rev: 2cb561de9b34d0c23939a492c475230f21d87d99) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9eb25be609
commit
9610ab39d9
@@ -240,7 +240,6 @@ class MainWindow (gtk.Window):
|
||||
|
||||
def busy_idle_func(self):
|
||||
if self.generating:
|
||||
self.progress.set_text("Loading...")
|
||||
self.progress.pulse()
|
||||
return True
|
||||
else:
|
||||
@@ -253,12 +252,13 @@ class MainWindow (gtk.Window):
|
||||
|
||||
def busy(self, handler):
|
||||
self.generating = True
|
||||
self.progress.set_text("Loading...")
|
||||
self.set_busy_cursor()
|
||||
if self.image_combo_id:
|
||||
self.image_combo.disconnect(self.image_combo_id)
|
||||
self.image_combo_id = None
|
||||
self.progress.pulse()
|
||||
gobject.timeout_add (200, self.busy_idle_func)
|
||||
gobject.timeout_add (100, self.busy_idle_func)
|
||||
self.disable_widgets()
|
||||
|
||||
def enable_widgets(self):
|
||||
|
||||
Reference in New Issue
Block a user