mobile UI: add context menu to DiveDetails
The undo and redo action actually work already. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
af4bd16f88
commit
28bf078ff7
@ -193,6 +193,20 @@ Kirigami.Page {
|
||||
}
|
||||
}
|
||||
|
||||
contextualActions: [
|
||||
Kirigami.Action {
|
||||
text: qsTr("Undo") + " " + manager.undoText
|
||||
enabled: manager.undoText !== ""
|
||||
onTriggered: manager.undo()
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: qsTr("Redo") + " " + manager.redoText
|
||||
enabled: manager.redoText !== ""
|
||||
onTriggered: manager.redo()
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
onBackRequested: {
|
||||
if (state === "edit") {
|
||||
endEditMode()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user