Return to the last task when tapping the task list icon again on iPhone
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user