mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 05:13:23 +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: {
|
||||
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…
Add table
Reference in a new issue