From 9c840f3edcd951222c04c89c04546852ed84b455 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 12 Feb 2024 05:15:43 +0100 Subject: [PATCH] Attempt to fix settings freeze --- gui/src/gui/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/src/gui/settings.py b/gui/src/gui/settings.py index 3fc1a06..ef16727 100644 --- a/gui/src/gui/settings.py +++ b/gui/src/gui/settings.py @@ -213,8 +213,6 @@ class SettingsWinvdow(Gtk.ApplicationWindow): self.preferences_group.add(self.status_row) def update_labels(): - GLib.timeout_add(1000, update_labels) - pin_set = goldwarden.is_pin_enabled() status = goldwarden.get_vault_status() print("status", status) @@ -275,6 +273,9 @@ 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(5000, update_labels) + GLib.timeout_add(1000, update_labels) self.set_default_size(400, 700)