mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
2 changed files with 3 additions and 0 deletions
|
@ -214,8 +214,10 @@ MobileComponents.Page {
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
page.mainAction = page.saveAction
|
page.mainAction = page.saveAction
|
||||||
|
showingDiveList = false
|
||||||
} else {
|
} else {
|
||||||
page.mainAction = null
|
page.mainAction = null
|
||||||
|
showingDiveList = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ MobileComponents.ApplicationWindow {
|
||||||
property int oldStatus: -1
|
property int oldStatus: -1
|
||||||
property alias accessingCloud: manager.accessingCloud
|
property alias accessingCloud: manager.accessingCloud
|
||||||
property QtObject notification: null
|
property QtObject notification: null
|
||||||
|
property bool showingDiveList: false
|
||||||
onAccessingCloudChanged: {
|
onAccessingCloudChanged: {
|
||||||
if (accessingCloud) {
|
if (accessingCloud) {
|
||||||
showPassiveNotification("Accessing Subsurface Cloud Storage", 500000);
|
showPassiveNotification("Accessing Subsurface Cloud Storage", 500000);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue