window: Fix fail page as permanent

This commit is contained in:
Peter Eisenmann
2024-10-24 01:26:53 -04:00
parent dd95dc333a
commit b645e8e095

View File

@@ -82,8 +82,11 @@ class OsInstallerWindow(Adw.ApplicationWindow):
self._add_action('quit', self._show_confirm_dialog, '<Ctl>q')
if config.get('test_mode'):
def show_failed(_, __): return self._load_page('failed')
def show_failed(_, __):
with self.navigation_lock:
return self._load_page('failed', permanent=False)
self._add_action('fail-page', show_failed, '<Alt>F')
def skip_page(_, __):
with self.navigation_lock:
return self._advance(None)