diff options
Diffstat (limited to 'imports_system/system/models/notification/NotificationModel.qml')
-rw-r--r-- | imports_system/system/models/notification/NotificationModel.qml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/imports_system/system/models/notification/NotificationModel.qml b/imports_system/system/models/notification/NotificationModel.qml index 244d3a4e..ba2eca9c 100644 --- a/imports_system/system/models/notification/NotificationModel.qml +++ b/imports_system/system/models/notification/NotificationModel.qml @@ -46,21 +46,16 @@ QtObject { readonly property Connections notificationManagerConnection: Connections { target: root.model - onNotificationAdded: { + function onNotificationAdded() { root.notificationAdded(); } - onNotificationAboutToBeRemoved: { + function onNotificationAboutToBeRemoved() { root.notificationRemoved(); } } - 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(); } } |