From 2c3c0c621853b86bd8d4fd7b37220cd30a88d10f Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Thu, 28 Dec 2023 13:41:32 +0100 Subject: [PATCH] Fix ui not updating after error --- ui/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/settings.py b/ui/settings.py index bcc5390..aad716b 100644 --- a/ui/settings.py +++ b/ui/settings.py @@ -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)