mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 08:03:24 +00:00
QML UI: allow the user to close the Log
Same context menu idea. The reason for adding this is that the context menu always acts on the last page in the stack (so I guess the "right-most-one"). So if you edit a dive and then open the log, you can't save the dive until the dive edit is the last page which means you have to close the log, first. Not ideal, but better than nothing and it works well enough. I still think we might want to go back to a traditional "Save" button... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fd23a4891c
commit
87fc84a5ee
1 changed files with 12 additions and 0 deletions
|
@ -37,4 +37,16 @@ MobileComponents.Page {
|
|||
}
|
||||
}
|
||||
}
|
||||
contextualActions: [
|
||||
Action {
|
||||
id: closeLog
|
||||
text: "Close log"
|
||||
iconName: "view-readermode"
|
||||
onTriggered: {
|
||||
stackView.pop()
|
||||
contextDrawer.close()
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue