window: Add more non-returnable pages

This commit is contained in:
Peter Eisenmann
2024-06-21 02:12:17 +02:00
parent 65dff4b20c
commit 0c6fd61ab7
4 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ class DonePage(Gtk.Box, Page):
@Gtk.Template.Callback('restart_button_clicked')
def _restart_button_clicked(self, button):
global_state.advance(self, allow_return=False)
global_state.advance(self)
@Gtk.Template.Callback('terminal_button_toggled')
def _terminal_button_toggled(self, toggle_button):

View File

@@ -52,7 +52,7 @@ class SummaryPage(Gtk.Box, Page):
@Gtk.Template.Callback('continue')
def _continue(self, button):
global_state.advance(self, allow_return=False)
global_state.advance(self)
installation_scripting.can_run_configure()
@Gtk.Template.Callback('summary_row_activated')

View File

@@ -125,7 +125,7 @@ page_name_to_image = {
'welcome': None,
}
non_returnable_pages = ['done', 'failed', 'summary']
non_returnable_pages = ['done', 'failed', 'install', 'restart', 'summary']
forward = 1

View File

@@ -93,7 +93,7 @@ class InstallationScripting():
config.set('installation_running', False)
# Translators: Notification text
global_state.send_notification(_("Finished Installation"), '')
global_state.advance(None, allow_return=False)
global_state.advance(None)
else:
self._try_start_next_script()