Fix ui not updating after error
This commit is contained in:
parent
b51a017bae
commit
2c3c0c6218
1 changed files with 2 additions and 1 deletions
|
|
@ -158,6 +158,8 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
|
||||||
self.action_preferences_group.add(self.logout_button)
|
self.action_preferences_group.add(self.logout_button)
|
||||||
|
|
||||||
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()
|
||||||
if status != None:
|
if status != None:
|
||||||
|
|
@ -210,7 +212,6 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
|
||||||
if not is_daemon_running:
|
if not is_daemon_running:
|
||||||
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(1000, 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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue