mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 14:07:47 -04:00
fix notif button state
This commit is contained in:
1 parent
9a9ab8b047
commit
c87b66fe35
1 file changed
+2
-3
@@ -892,7 +892,7 @@ PanelWindow {
|
||||
|
||||
NotificationCenterButton {
|
||||
hasUnread: root.notificationCount > 0
|
||||
isActive: notificationCenterLoader.item ? notificationCenterLoader.item.notificationHistoryVisible : false
|
||||
isActive: notificationCenterLoader.item ? notificationCenterLoader.item.shouldBeVisible : false
|
||||
section: {
|
||||
if (parent && parent.parent === leftSection)
|
||||
return "left"
|
||||
@@ -910,8 +910,7 @@ PanelWindow {
|
||||
onClicked: {
|
||||
notificationCenterLoader.active = true
|
||||
if (notificationCenterLoader.item) {
|
||||
notificationCenterLoader.item.notificationHistoryVisible
|
||||
= !notificationCenterLoader.item.notificationHistoryVisible
|
||||
notificationCenterLoader.item.toggle()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user