mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
bitbake: hob: stop build without percentage shown
added a method in progressbar.py that doesn't update the percentage in the progress bar shown in hob. the call of the method is done in builder.py. (Bitbake rev: 7ab5775fceda1055b86bdc3313fc4bf928bf5155) Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9cf610680f
commit
b3374dbfd0
@@ -1492,7 +1492,7 @@ class Builder(gtk.Window):
|
|||||||
if response != gtk.RESPONSE_CANCEL:
|
if response != gtk.RESPONSE_CANCEL:
|
||||||
self.stopping = True
|
self.stopping = True
|
||||||
if response == gtk.RESPONSE_OK:
|
if response == gtk.RESPONSE_OK:
|
||||||
self.build_details_page.progress_bar.set_title("Stopping the build...")
|
self.build_details_page.progress_bar.set_stop_title("Stopping the build....")
|
||||||
self.build_details_page.progress_bar.set_rcstyle("stop")
|
self.build_details_page.progress_bar.set_rcstyle("stop")
|
||||||
self.cancel_build_sync()
|
self.cancel_build_sync()
|
||||||
elif response == gtk.RESPONSE_YES:
|
elif response == gtk.RESPONSE_YES:
|
||||||
|
|||||||
@@ -43,6 +43,11 @@ class HobProgressBar (gtk.ProgressBar):
|
|||||||
text += " %.0f%%" % self.percentage
|
text += " %.0f%%" % self.percentage
|
||||||
self.set_text(text)
|
self.set_text(text)
|
||||||
|
|
||||||
|
def set_stop_title(self, text=None):
|
||||||
|
if not text:
|
||||||
|
text = ""
|
||||||
|
self.set_text(text)
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
self.set_fraction(0)
|
self.set_fraction(0)
|
||||||
self.set_text("")
|
self.set_text("")
|
||||||
|
|||||||
Reference in New Issue
Block a user