Skip to content

Commit

Permalink
Notifications: Don't display 'acknowledge all' after clicking 'silenc…
Browse files Browse the repository at this point in the history
…e alarm'

Fixes #1348
  • Loading branch information
DanielMcInnes committed Jul 30, 2024
1 parent ded9228 commit ce6985f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pages/NotificationsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,15 @@ 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"
color: Theme.color_font_primary
}

Label {
id: label
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: Theme.font_size_caption
text: Global.notifications.alarm
Expand All @@ -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()
}
}
}

0 comments on commit ce6985f

Please sign in to comment.