frontend: Fix reboot button not being hidden

main
mirkobrombin 2 years ago
parent d2dce395fa
commit b007a5e458

@ -45,11 +45,14 @@ class VanillaDone(Adw.Bin):
if reboot:
self.btn_reboot.connect("clicked", self.__on_reboot_clicked)
else:
self.btn_reboot.set_visible(False)
self.btn_close.set_visible(True)
self.btn_close.connect("clicked", self.__on_close_clicked)
def set_result(self, result):
if not result:
if result:
return
self.status_page.set_icon_name("dialog-error-symbolic")
if not self.__fail_title and not self.__fail_description:
self.status_page.set_title(_("Something went wrong"))

Loading…
Cancel
Save