From a8814854aa49dcd01cf959dd522fd174c05ec43a Mon Sep 17 00:00:00 2001 From: Mike Trahearn Date: Fri, 21 Feb 2025 11:57:43 +1000 Subject: [PATCH] Show the alarmButton for any type of unsilenced notifications Remove invalid binding. --- components/StatusBar.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/StatusBar.qml b/components/StatusBar.qml index aa57a15a6..053569ac8 100644 --- a/components/StatusBar.qml +++ b/components/StatusBar.qml @@ -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 @@ -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"