From ce6985f4a546f9547ad90b80c05c2559fa357c12 Mon Sep 17 00:00:00 2001 From: Daniel McInnes Date: Tue, 23 Jul 2024 17:11:10 +1000 Subject: [PATCH] Notifications: Don't display 'acknowledge all' after clicking 'silence alarm' Fixes #1348 --- pages/NotificationsPage.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/NotificationsPage.qml b/pages/NotificationsPage.qml index fddf9b257..2bfc85060 100644 --- a/pages/NotificationsPage.qml +++ b/pages/NotificationsPage.qml @@ -178,6 +178,7 @@ SwipeViewPage { spacing: Theme.geometry_notificationsPage_snoozeButton_spacing CP.ColorImage { + id: image anchors.verticalCenter: parent.verticalCenter visible: Global.notifications.alarm source: "qrc:/images/icon_alarm_snooze_24.svg" @@ -185,6 +186,7 @@ SwipeViewPage { } Label { + id: label anchors.verticalCenter: parent.verticalCenter font.pixelSize: Theme.font_size_caption text: Global.notifications.alarm @@ -195,6 +197,12 @@ SwipeViewPage { } } - onClicked: Global.notifications.acknowledgeAll() + onClicked: { + // break bindings so that color, text and image don't change while fading out + backgroundColor = backgroundColor + label.text = label.text + image.visible = image.visible + Global.notifications.acknowledgeAll() + } } }