mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile UI: add ability to remove dive from its trip
If we remove the newest dive from its trip, it becomes inaccessible in the app, but the dive data saved to disk appears to be correct. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
968278fe91
commit
3464e776e2
3 changed files with 26 additions and 1 deletions
|
|
@ -59,7 +59,14 @@ Kirigami.Page {
|
|||
background: Rectangle { color: subsurfaceTheme.backgroundColor }
|
||||
width: rootItem.colWidth
|
||||
|
||||
property QtObject removeDiveFromTripAction: Kirigami.Action { text: qsTr ("Remove dive from trip <TBD>") }
|
||||
property QtObject removeDiveFromTripAction: Kirigami.Action {
|
||||
text: qsTr ("Remove this dive from trip")
|
||||
enabled: currentItem && currentItem.modelData.diveInTrip
|
||||
onTriggered: {
|
||||
manager.appendTextToLog("remove dive #" + currentItem.modelData.number + " from its trip")
|
||||
manager.removeDiveFromTrip(currentItem.modelData.id)
|
||||
}
|
||||
}
|
||||
property QtObject addDiveToTripAction: Kirigami.Action { text: qsTr ("Add dive to trip <TBD>") }
|
||||
property QtObject undoAction: Kirigami.Action {
|
||||
text: qsTr("Undo") + " " + manager.undoText
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue