QML UI: prevent changing pages while showing the edit/add overlay sheet
If you switch back to the dive list by swiping horizontally you stay in edit/add mode and then can't select a dive on the dive list. This way you have to discard or save the edit, first. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1e86662e4a
commit
ac0c1eb5e1
@ -46,14 +46,17 @@ Kirigami.Page {
|
||||
}
|
||||
}
|
||||
PropertyChanges { target: detailsEditScroll; opened: false }
|
||||
PropertyChanges { target: pageStack.contentItem; interactive: true }
|
||||
},
|
||||
State {
|
||||
name: "edit"
|
||||
PropertyChanges { target: detailsEditScroll; opened: true }
|
||||
PropertyChanges { target: pageStack.contentItem; interactive: false }
|
||||
},
|
||||
State {
|
||||
name: "add"
|
||||
PropertyChanges { target: detailsEditScroll; opened: true }
|
||||
PropertyChanges { target: pageStack.contentItem; interactive: false }
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user