mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: set the title of the right object
Intended was here to set the title of the Dive list with id: page, instead of the startpage object. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
48ff047086
commit
50891c838e
1 changed files with 3 additions and 3 deletions
|
@ -273,17 +273,17 @@ Kirigami.ScrollablePage {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
page.actions.main = page.saveAction
|
page.actions.main = page.saveAction
|
||||||
page.actions.right = page.offlineAction
|
page.actions.right = page.offlineAction
|
||||||
title = qsTr("Cloud credentials")
|
page.title = qsTr("Cloud credentials")
|
||||||
} else if(manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD) {
|
} else if(manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD) {
|
||||||
page.actions.main = page.downloadFromDCAction
|
page.actions.main = page.downloadFromDCAction
|
||||||
page.actions.right = page.addDiveAction
|
page.actions.right = page.addDiveAction
|
||||||
title = qsTr("Dive list")
|
page.title = qsTr("Dive list")
|
||||||
if (diveListView.count === 0)
|
if (diveListView.count === 0)
|
||||||
showPassiveNotification(qsTr("Please tap the '+' button to add a dive (or download dives from a supported dive computer)"), 3000)
|
showPassiveNotification(qsTr("Please tap the '+' button to add a dive (or download dives from a supported dive computer)"), 3000)
|
||||||
} else {
|
} else {
|
||||||
page.actions.main = null
|
page.actions.main = null
|
||||||
page.actions.right = null
|
page.actions.right = null
|
||||||
title = qsTr("Dive list")
|
page.title = qsTr("Dive list")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue