improve updater dialog behaviour
This commit is contained in:
parent
68ccf5e803
commit
49c2e4f1d7
@ -224,12 +224,11 @@ class BasePanel(ScreenPanel):
|
|||||||
try:
|
try:
|
||||||
self.update_dialog.set_response_sensitive(Gtk.ResponseType.OK, True)
|
self.update_dialog.set_response_sensitive(Gtk.ResponseType.OK, True)
|
||||||
self.update_dialog.get_widget_for_response(Gtk.ResponseType.OK).show()
|
self.update_dialog.get_widget_for_response(Gtk.ResponseType.OK).show()
|
||||||
return
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
logging.error("error trying to show the updater button the dialog might be closed")
|
logging.error("error trying to show the updater button the dialog might be closed")
|
||||||
self._screen.updating = False
|
self._screen.updating = False
|
||||||
for dialog in self._screen.dialogs:
|
for dialog in self._screen.dialogs:
|
||||||
self._gtk.remove_dialog(dialog)
|
self._gtk.remove_dialog(dialog)
|
||||||
|
|
||||||
if action != "notify_status_update" or self._screen.printer is None:
|
if action != "notify_status_update" or self._screen.printer is None:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user