Skip to content

Commit

Permalink
Switch to Today Page after first sync
Browse files Browse the repository at this point in the history
Instead of remaining in Status Page with the message "Not Task Lists"

Signed-off-by: Simó Albert i Beltran <[email protected]>
sim6 committed May 23, 2024
1 parent 142c6fa commit 99c734e
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
@@ -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

0 comments on commit 99c734e

Please sign in to comment.