Skip to content

Commit

Permalink
Notification Bell icon should not show for active Info types
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTrahearn-Qinetic committed Jan 13, 2025
1 parent fed6a37 commit 91ad16a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/StatusBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
color: Theme.color_font_primary
source: "qrc:/images/notifications.svg"
visible: Global.notifications.activeAlarmsModel.count > 0
visible: Global.notifications.activeAlarmsAndWarningsModel.count > 0
}
}

Expand Down
5 changes: 3 additions & 2 deletions data/Notifications.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ QtObject {
filterFunction: (notification) => { return notification.type === VenusOS.Notification_Alarm && !notification.acknowledged }
sortFunction: root._notificationSortFunction
}
readonly property NotificationSortFilterProxyModel activeAlarmsModel: NotificationSortFilterProxyModel {
readonly property NotificationSortFilterProxyModel activeAlarmsAndWarningsModel: NotificationSortFilterProxyModel {
sourceModel: allNotificationsModel
filterFunction: (notification) => { return notification.type === VenusOS.Notification_Alarm && notification.active }
filterFunction: (notification) => { return (notification.type === VenusOS.Notification_Alarm ||
notification.type === VenusOS.Notification_Warning) && notification.active }
sortFunction: root._notificationSortFunction
}

Expand Down

0 comments on commit 91ad16a

Please sign in to comment.