QML UI: add property to reflect when dive list is shown
This makes it easier to have actions that are only valid in this case. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
13c49276d1
commit
1cf1fa9cac
@ -214,8 +214,10 @@ MobileComponents.Page {
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
page.mainAction = page.saveAction
|
||||
showingDiveList = false
|
||||
} else {
|
||||
page.mainAction = null
|
||||
showingDiveList = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@ MobileComponents.ApplicationWindow {
|
||||
property int oldStatus: -1
|
||||
property alias accessingCloud: manager.accessingCloud
|
||||
property QtObject notification: null
|
||||
property bool showingDiveList: false
|
||||
onAccessingCloudChanged: {
|
||||
if (accessingCloud) {
|
||||
showPassiveNotification("Accessing Subsurface Cloud Storage", 500000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user