Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh all views when day changes #1112

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down