mirror of
https://github.com/quexten/goldwarden.git
synced 2024-09-11 11:15:41 +03:00
Fix login screen
This commit is contained in:
parent
6da52ba6de
commit
f7e76056d7
@ -13,7 +13,6 @@ Adw.Window window {
|
|||||||
Stack stack {
|
Stack stack {
|
||||||
Box set_pin_status {
|
Box set_pin_status {
|
||||||
orientation: vertical;
|
orientation: vertical;
|
||||||
visible: false;
|
|
||||||
Adw.StatusPage {
|
Adw.StatusPage {
|
||||||
margin-top: 100;
|
margin-top: 100;
|
||||||
title: "Pin required";
|
title: "Pin required";
|
||||||
@ -55,7 +54,7 @@ Adw.Window window {
|
|||||||
title: "Logged out";
|
title: "Logged out";
|
||||||
icon-name: "system-users-symbolic";
|
icon-name: "system-users-symbolic";
|
||||||
}
|
}
|
||||||
Button {
|
Button login_button {
|
||||||
label: "Log in";
|
label: "Log in";
|
||||||
margin-start: 20;
|
margin-start: 20;
|
||||||
margin-end: 20;
|
margin-end: 20;
|
||||||
|
@ -28,6 +28,7 @@ class GoldwardenSettingsApp(Adw.Application):
|
|||||||
|
|
||||||
def on_activate(self, app):
|
def on_activate(self, app):
|
||||||
self.load()
|
self.load()
|
||||||
|
self.update()
|
||||||
self.window.present()
|
self.window.present()
|
||||||
GLib.timeout_add(100, self.update)
|
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_status_box = builder.get_object("unlock_status")
|
||||||
self.unlock_button = builder.get_object("unlock_button")
|
self.unlock_button = builder.get_object("unlock_button")
|
||||||
self.unlock_button.connect("clicked", lambda x: goldwarden.unlock())
|
self.unlock_button.connect("clicked", lambda x: goldwarden.unlock())
|
||||||
|
|
||||||
self.login_status_box = builder.get_object("login_status")
|
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.settings_view = builder.get_object("settings_view")
|
||||||
self.lock_button = builder.get_object("lock_button")
|
self.lock_button = builder.get_object("lock_button")
|
||||||
|
Loading…
Reference in New Issue
Block a user