mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: hob: remove confirmation dialog on close
This is not necessary for modern applications - instead we just need to check if we're in the middle of a build and if so, do the same thing as pressing the "Stop" button. (Bitbake rev: a79eb5d918239db1dade8134743e6142a4854930) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bf567b14a8
commit
c46c5605fe
@@ -1025,20 +1025,11 @@ class Builder(gtk.Window):
|
|||||||
def destroy_window_cb(self, widget, event):
|
def destroy_window_cb(self, widget, event):
|
||||||
if not self.sensitive:
|
if not self.sensitive:
|
||||||
return True
|
return True
|
||||||
lbl = "<b>Do you really want to exit the Hob image creator?</b>"
|
elif self.handler.building:
|
||||||
dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_INFO)
|
self.stop_build()
|
||||||
button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
|
|
||||||
HobAltButton.style_button(button)
|
|
||||||
button = dialog.add_button("Exit Hob", gtk.RESPONSE_YES)
|
|
||||||
HobButton.style_button(button)
|
|
||||||
dialog.set_default_response(gtk.RESPONSE_YES)
|
|
||||||
response = dialog.run()
|
|
||||||
dialog.destroy()
|
|
||||||
if response == gtk.RESPONSE_YES:
|
|
||||||
gtk.main_quit()
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
return True
|
||||||
|
else:
|
||||||
|
gtk.main_quit()
|
||||||
|
|
||||||
def build_packages(self):
|
def build_packages(self):
|
||||||
_, all_recipes = self.recipe_model.get_selected_recipes()
|
_, all_recipes = self.recipe_model.get_selected_recipes()
|
||||||
|
|||||||
Reference in New Issue
Block a user