Skip to content

Commit

Permalink
Merge pull request #298 from sim6/switch_to_today_page_after_first_sync
Browse files Browse the repository at this point in the history
Switch to Today Page after first sync
  • Loading branch information
mrvladus authored May 23, 2024
2 parents 9162eb8 + 99c734e commit 7bc6473
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions errands/lib/sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def sync(self) -> None:
self.sync_again = False
GLib.idle_add(State.sidebar.toggle_sync_indicator, False)
self.syncing = False
if (
State.view_stack.get_visible_child_name() == "errands_status_page"
and UserData.task_lists
):
State.view_stack.set_visible_child_name("errands_today_page")

# TODO: Needs to be threaded to not block UI
@classmethod
Expand Down

0 comments on commit 7bc6473

Please sign in to comment.