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:
Marco Martin 2016-03-03 19:35:33 +01:00 committed by Dirk Hohndel
parent 93f9bcd041
commit d24e5b455f
3 changed files with 4 additions and 18 deletions

View file

@ -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();
}
}