Fix ui not updating after error

This commit is contained in:
Bernd Schoolmann 2023-12-28 13:41:32 +01:00
parent b51a017bae
commit 2c3c0c6218
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,8 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
self.action_preferences_group.add(self.logout_button)
def update_labels():
GLib.timeout_add(1000, update_labels)
pin_set = goldwarden.is_pin_enabled()
status = goldwarden.get_vault_status()
if status != None:
@ -210,7 +212,6 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
if not is_daemon_running:
self.status_row.set_subtitle("Daemon not running")
self.vault_status_icon.set_icon("dialog-error", "error")
GLib.timeout_add(1000, update_labels)
GLib.timeout_add(1000, update_labels)
self.set_default_size(400, 700)