From 0d73ea0a438a977b589e911d126bd6a39bdbf7e7 Mon Sep 17 00:00:00 2001 From: Nick Moore Date: Thu, 10 Oct 2024 16:33:34 +1100 Subject: [PATCH] fix async update problem --- countess/gui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/countess/gui/main.py b/countess/gui/main.py index 9f41d22..c5428e5 100644 --- a/countess/gui/main.py +++ b/countess/gui/main.py @@ -234,6 +234,7 @@ def notes_modified_callback(self, *_): def config_change_callback(self, *_): """Called immediately if a change to config has occurred.""" logger.debug("config_change_callback") + self.node.mark_dirty() # Leave it a bit to see if the user is still typing, if so cancel. if self.config_change_task: @@ -252,7 +253,6 @@ def config_change_task_callback(self): return self.config_change_task = None - self.node.mark_dirty() self.node_update_thread = threading.Thread(target=self.node.prerun) logger.debug("config_change_task_callback: starting thread %s", self.node_update_thread)