aboutsummaryrefslogtreecommitdiffstats
path: root/imports_system/system/models/notification/NotificationModel.qml
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2020-03-02 14:50:28 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2020-03-04 11:03:58 +0000
commit17a05c081f6db560e5d0120323955937d8ce06b3 (patch)
tree6378548e23d326b5ccd79f97500e9ab8a71eada9 /imports_system/system/models/notification/NotificationModel.qml
parent225dcefc572c779ab9580227a24f3234ef415bed (diff)
[notifications] fix notification drag behavior
also this patch makes sure, that we always see the last notification Change-Id: I95208eb802f7dee1ec8bbd8a1fc72c582be5112e Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'imports_system/system/models/notification/NotificationModel.qml')
-rw-r--r--imports_system/system/models/notification/NotificationModel.qml6
1 files changed, 1 insertions, 5 deletions
diff --git a/imports_system/system/models/notification/NotificationModel.qml b/imports_system/system/models/notification/NotificationModel.qml
index 244d3a4e..32841184 100644
--- a/imports_system/system/models/notification/NotificationModel.qml
+++ b/imports_system/system/models/notification/NotificationModel.qml
@@ -55,12 +55,7 @@ QtObject {
}
}
- function showNotification() {
- root.notificationToastVisible = true;
- }
-
function closeNotification() {
- root.notificationToastVisible = false;
root.notificationClosed();
}
@@ -77,6 +72,7 @@ QtObject {
while (root.count > 0) {
removeNotification(NotificationManager.get(0).id);
}
+
root.notificationsCleared();
}
}