From 85c55c36a042aa127193f22b5e973a2c4f1ff6ce Mon Sep 17 00:00:00 2001 From: Diego Garcia Gangl Date: Thu, 6 Jun 2024 18:33:08 -0300 Subject: [PATCH] Refresh all views when day changes fixes #1073 --- GTG/gtk/browser/main_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/GTG/gtk/browser/main_window.py b/GTG/gtk/browser/main_window.py index 57b5cf79b..66be6a655 100644 --- a/GTG/gtk/browser/main_window.py +++ b/GTG/gtk/browser/main_window.py @@ -638,8 +638,13 @@ def restore_editor_windows(self): log.warning("Could not restore task with id %s", tid) - def refresh_all_views(self, timer): - self.get_pane().refresh() + def refresh_all_views(self, timer = None) -> None: + """Refresh all taskpanes.""" + + for page in self.stack_switcher.get_stack().get_pages(): + pane = page.get_child().get_first_child() + pane.refresh() + def find_value_in_treestore(self, store, treeiter, value): """Search for value in tree store recursively."""