system: updater: hide the end button until the update completes

it's already not sensitive but that is not intuitive sometimes
This commit is contained in:
alfrix 2022-10-21 08:21:25 -03:00
parent 17e4bb704e
commit 2121d4a6aa

View File

@ -135,6 +135,7 @@ class SystemPanel(ScreenPanel):
)
if data['complete']:
self.update_dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, True)
self.update_dialog.get_widget_for_response(Gtk.ResponseType.CANCEL).show()
def restart(self, widget, program):
if program not in ALLOWED_SERVICES:
@ -276,6 +277,7 @@ class SystemPanel(ScreenPanel):
dialog = self._gtk.Dialog(self._screen, buttons, scroll, self.finish_updating)
dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, False)
dialog.get_widget_for_response(Gtk.ResponseType.CANCEL).hide()
self.update_prog = program
self.update_dialog = dialog
@ -321,6 +323,7 @@ class SystemPanel(ScreenPanel):
dialog = self._gtk.Dialog(self._screen, buttons, scroll, self.finish_updating)
dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, False)
dialog.get_widget_for_response(Gtk.ResponseType.CANCEL).hide()
self.update_prog = program
self.update_dialog = dialog