window: Add more non-returnable pages
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user