improve updater dialog behaviour

This commit is contained in:
alfrix 2022-11-29 01:52:47 -03:00
parent 68ccf5e803
commit 49c2e4f1d7

View File

@ -224,12 +224,11 @@ class BasePanel(ScreenPanel):
try:
self.update_dialog.set_response_sensitive(Gtk.ResponseType.OK, True)
self.update_dialog.get_widget_for_response(Gtk.ResponseType.OK).show()
return
except AttributeError:
logging.error("error trying to show the updater button the dialog might be closed")
self._screen.updating = False
for dialog in self._screen.dialogs:
self._gtk.remove_dialog(dialog)
self._screen.updating = False
for dialog in self._screen.dialogs:
self._gtk.remove_dialog(dialog)
if action != "notify_status_update" or self._screen.printer is None:
return