Skip to content

Commit

Permalink
Show the alarmButton for any type of unsilenced notifications
Browse files Browse the repository at this point in the history
Remove invalid binding.
  • Loading branch information
MikeTrahearn-Qinetic committed Feb 21, 2025
1 parent ae4ccf5 commit a881485
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/StatusBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Rectangle {
property int leftButton: VenusOS.StatusBar_LeftButton_None
property int rightButton: VenusOS.StatusBar_RightButton_None
readonly property bool notificationButtonsEnabled: Global.mainView.currentPage && !!Global.mainView.currentPage.url && Global.mainView.currentPage.url.endsWith("NotificationsPage.qml")
readonly property bool notificationButtonVisible: alertButton.enabled || alertButton.animating || alarmButton.enabled || alarmButton.animating
readonly property bool notificationButtonVisible: alarmButton.enabled || alarmButton.animating

property bool animationEnabled

Expand Down Expand Up @@ -221,9 +221,7 @@ Rectangle {
right: rightSideRow.right
verticalCenter: parent.verticalCenter
}
enabled: notificationButtonsEnabled &&
((Global.notifications?.alarms.hasUnsilenced ?? false) ||
(Global.notifications?.alarms.hasActive ?? false))
enabled: notificationButtonsEnabled && (Global.notifications?.hasUnsilencedNotifications ?? false)
backgroundColor: Theme.color_critical_background
icon.source: "qrc:/images/icon_alarm_snooze_24.svg"

Expand Down

0 comments on commit a881485

Please sign in to comment.