Fix password setting and inhibit system sleep during install
This commit is contained in:
@@ -465,6 +465,14 @@ class InstallerWindow(Adw.ApplicationWindow):
|
||||
# Show success in UI even in mock
|
||||
self.show_finish_page("Mock Installation Complete!")
|
||||
else:
|
||||
# Inhibit logout/suspend
|
||||
app = self.get_application()
|
||||
self.inhibit_cookie = app.inhibit(
|
||||
self,
|
||||
Gtk.ApplicationInhibitFlags.LOGOUT | Gtk.ApplicationInhibitFlags.SUSPEND,
|
||||
"Installing Operating System"
|
||||
)
|
||||
|
||||
self.show_progress_page("Installing Iridium OS...")
|
||||
thread = threading.Thread(
|
||||
target=self.run_installation,
|
||||
|
||||
Reference in New Issue
Block a user