mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 21:45:38 -05:00
fix notif button state
This commit is contained in:
@@ -892,7 +892,7 @@ PanelWindow {
|
|||||||
|
|
||||||
NotificationCenterButton {
|
NotificationCenterButton {
|
||||||
hasUnread: root.notificationCount > 0
|
hasUnread: root.notificationCount > 0
|
||||||
isActive: notificationCenterLoader.item ? notificationCenterLoader.item.notificationHistoryVisible : false
|
isActive: notificationCenterLoader.item ? notificationCenterLoader.item.shouldBeVisible : false
|
||||||
section: {
|
section: {
|
||||||
if (parent && parent.parent === leftSection)
|
if (parent && parent.parent === leftSection)
|
||||||
return "left"
|
return "left"
|
||||||
@@ -910,8 +910,7 @@ PanelWindow {
|
|||||||
onClicked: {
|
onClicked: {
|
||||||
notificationCenterLoader.active = true
|
notificationCenterLoader.active = true
|
||||||
if (notificationCenterLoader.item) {
|
if (notificationCenterLoader.item) {
|
||||||
notificationCenterLoader.item.notificationHistoryVisible
|
notificationCenterLoader.item.toggle()
|
||||||
= !notificationCenterLoader.item.notificationHistoryVisible
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user