lib/bb/ui/crumbs/builder: allow user to cancel Layer selection dialogue
Because layer changes may take some time allow the user to cancel out of the dialogue and prevent Hob from applying any of the changes made. (Bitbake rev: a2d1c035a5dd3d112a887e4386dfaf9b0c37c104) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c489990f82
commit
7463dd803a
|
@ -734,7 +734,9 @@ class Builder(gtk.Window):
|
||||||
flags = gtk.DIALOG_MODAL
|
flags = gtk.DIALOG_MODAL
|
||||||
| gtk.DIALOG_DESTROY_WITH_PARENT
|
| gtk.DIALOG_DESTROY_WITH_PARENT
|
||||||
| gtk.DIALOG_NO_SEPARATOR)
|
| gtk.DIALOG_NO_SEPARATOR)
|
||||||
button = dialog.add_button("Close", gtk.RESPONSE_YES)
|
button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
|
||||||
|
HobAltButton.style_button(button)
|
||||||
|
button = dialog.add_button("OK", gtk.RESPONSE_YES)
|
||||||
HobButton.style_button(button)
|
HobButton.style_button(button)
|
||||||
response = dialog.run()
|
response = dialog.run()
|
||||||
if response == gtk.RESPONSE_YES:
|
if response == gtk.RESPONSE_YES:
|
||||||
|
|
Loading…
Reference in New Issue