Skip to content

Commit

Permalink
fix async update problem
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzoic committed Oct 10, 2024
1 parent 7ec736b commit 0d73ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion countess/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 0d73ea0

Please sign in to comment.