aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Marco Martin <notmart@gmail.com>2016-03-03 19:35:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-03 10:44:41 -0800
commitd24e5b455f4c52c59fe70f047f9ca0a6c30fcaa6 (patch)
tree6d6a62c371b05677adb6d3900ddfb842988a2f61 /qt-mobile/qml/main.qml
parent93f9bcd0411770c52cc1e0d356b5da03729c253e (diff)
downloadsubsurface-d24e5b455f4c52c59fe70f047f9ca0a6c30fcaa6.tar.gz
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>
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r--qt-mobile/qml/main.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index 19655e7e5..6e9bb767c 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -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();
}
}