QML UI: update context menu text

The automagic update gets disabled once we overwrite the text with "Save" at
some point, so instead we appear to have to do this manually.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-01 09:31:51 -08:00
parent a0aa27e864
commit 37c74b5c2f

View file

@ -66,8 +66,10 @@ MobileComponents.Page {
buddy = detailsEdit.buddyText buddy = detailsEdit.buddyText
divemaster = detailsEdit.divemasterText divemaster = detailsEdit.divemasterText
notes = detailsEdit.notesText notes = detailsEdit.notesText
diveDetailsWindow.viewEditText = "Edit"
diveDetailsWindow.state = "view" diveDetailsWindow.state = "view"
} else { } else {
diveDetailsWindow.viewEditText = "Save"
diveDetailsWindow.state = "edit" diveDetailsWindow.state = "edit"
} }
contextDrawer.close() contextDrawer.close()