Attempt to fix settings freeze
This commit is contained in:
parent
761fb91a8a
commit
9c840f3edc
1 changed files with 3 additions and 2 deletions
|
|
@ -213,8 +213,6 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
|
||||||
self.preferences_group.add(self.status_row)
|
self.preferences_group.add(self.status_row)
|
||||||
|
|
||||||
def update_labels():
|
def update_labels():
|
||||||
GLib.timeout_add(1000, update_labels)
|
|
||||||
|
|
||||||
pin_set = goldwarden.is_pin_enabled()
|
pin_set = goldwarden.is_pin_enabled()
|
||||||
status = goldwarden.get_vault_status()
|
status = goldwarden.get_vault_status()
|
||||||
print("status", status)
|
print("status", status)
|
||||||
|
|
@ -276,6 +274,9 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
|
||||||
self.status_row.set_subtitle("Daemon not running")
|
self.status_row.set_subtitle("Daemon not running")
|
||||||
self.vault_status_icon.set_icon("dialog-error", "error")
|
self.vault_status_icon.set_icon("dialog-error", "error")
|
||||||
|
|
||||||
|
GLib.timeout_add(5000, update_labels)
|
||||||
|
|
||||||
|
|
||||||
GLib.timeout_add(1000, update_labels)
|
GLib.timeout_add(1000, update_labels)
|
||||||
self.set_default_size(400, 700)
|
self.set_default_size(400, 700)
|
||||||
self.set_title("Goldwarden")
|
self.set_title("Goldwarden")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue