Skip to content

Commit

Permalink
Refresh all views when day changes
Browse files Browse the repository at this point in the history
fixes #1073
  • Loading branch information
diegogangl committed Jun 24, 2024
1 parent 2733df0 commit 3b4b9eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,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."""
Expand Down

0 comments on commit 3b4b9eb

Please sign in to comment.