Return to the last task when tapping the task list icon again on iPhone

This commit is contained in:
Ian Gulliver
2026-10-23 06:44:44 -07:00
parent 53283312dc
commit d6494de33b
+4
View File
@@ -176,6 +176,10 @@ struct PhoneView: View {
.buttonStyle(.plain) .buttonStyle(.plain)
.accessibilityLabel("New task") .accessibilityLabel("New task")
Button { Button {
if tab == .tasks && path.isEmpty && store.selectedTaskId != nil {
path = [.task]
return
}
tab = .tasks tab = .tasks
path = [] path = []
} label: { } label: {