mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 14:55:27 +00:00
QML UI: correct text for context drawer when adding dive
This needs to say "Save" to indicate that you are saving the data that was entered. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0962b504ce
commit
9be42fff81
2 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,7 @@ MobileComponents.Page {
|
|||
property string date
|
||||
property string number
|
||||
property string weight
|
||||
property alias viewEditText: viewEditSelector.text
|
||||
|
||||
state: "view"
|
||||
|
||||
|
@ -46,6 +47,7 @@ MobileComponents.Page {
|
|||
|
||||
contextualActions: [
|
||||
Action {
|
||||
id: viewEditSelector
|
||||
text: checked ? "View" : "Edit"
|
||||
checkable: true
|
||||
iconName: checked ? "view-readermode" : "document-edit"
|
||||
|
|
|
@ -49,6 +49,7 @@ MobileComponents.ApplicationWindow {
|
|||
Action {
|
||||
text: "Add dive manually"
|
||||
onTriggered: {
|
||||
detailsWindow.viewEditText = "Save"
|
||||
detailsWindow.state = "edit"
|
||||
detailsWindow.dive_id = manager.addDive();
|
||||
detailsWindow.number = manager.getNumber(detailsWindow.dive_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue