mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
use the global showPassiveNotification function
don't create a local PassiveNotification copy, use the global show/hidePassiveNotification from ApplicationWindow, now that it works Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
93f9bcd041
commit
d24e5b455f
3 changed files with 4 additions and 18 deletions
|
@ -13,17 +13,13 @@ MobileComponents.ApplicationWindow {
|
|||
title: qsTr("Subsurface-mobile")
|
||||
property bool fullscreen: true
|
||||
property int oldStatus: -1
|
||||
property alias sharedNotificationComponent: detailsWindow.notificationComponent
|
||||
property alias accessingCloud: manager.accessingCloud
|
||||
property QtObject notification: null
|
||||
onAccessingCloudChanged: {
|
||||
if (accessingCloud) {
|
||||
notification = sharedNotificationComponent.createObject(rootItem);
|
||||
notification.showNotification("Accessing Subsurface Cloud Storage", 5000);
|
||||
showPassiveNotification("Accessing Subsurface Cloud Storage", 5000);
|
||||
} else {
|
||||
if (notification) {
|
||||
notification.hideNotification();
|
||||
}
|
||||
hidePassiveNotification();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue