Fix login screen

This commit is contained in:
Bernd Schoolmann 2024-05-03 20:02:25 +02:00
parent 6da52ba6de
commit f7e76056d7
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,6 @@ Adw.Window window {
Stack stack {
Box set_pin_status {
orientation: vertical;
visible: false;
Adw.StatusPage {
margin-top: 100;
title: "Pin required";
@ -55,7 +54,7 @@ Adw.Window window {
title: "Logged out";
icon-name: "system-users-symbolic";
}
Button {
Button login_button {
label: "Log in";
margin-start: 20;
margin-end: 20;

View File

@ -28,6 +28,7 @@ class GoldwardenSettingsApp(Adw.Application):
def on_activate(self, app):
self.load()
self.update()
self.window.present()
GLib.timeout_add(100, self.update)
@ -44,7 +45,10 @@ class GoldwardenSettingsApp(Adw.Application):
self.unlock_status_box = builder.get_object("unlock_status")
self.unlock_button = builder.get_object("unlock_button")
self.unlock_button.connect("clicked", lambda x: goldwarden.unlock())
self.login_status_box = builder.get_object("login_status")
self.login_button = builder.get_object("login_button")
self.login_button.connect("clicked", lambda x: run_window("login", "Test"))
self.settings_view = builder.get_object("settings_view")
self.lock_button = builder.get_object("lock_button")