mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:23:24 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue