mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
NotificationHistory panel
This commit is contained in:
@@ -20,21 +20,6 @@ NIconButton {
|
||||
colorBorderHover: Color.transparent
|
||||
|
||||
onClicked: {
|
||||
if (!notificationHistoryPanel.active) {
|
||||
notificationHistoryPanel.isLoaded = true
|
||||
}
|
||||
if (notificationHistoryPanel.item) {
|
||||
if (notificationHistoryPanel.item.visible) {
|
||||
// Panel is visible, hide it with animation
|
||||
if (notificationHistoryPanel.item.hide) {
|
||||
notificationHistoryPanel.item.hide()
|
||||
} else {
|
||||
notificationHistoryPanel.item.visible = false
|
||||
}
|
||||
} else {
|
||||
// Panel is hidden, show it
|
||||
notificationHistoryPanel.item.visible = true
|
||||
}
|
||||
}
|
||||
notificationHistoryPanel.toggle(screen)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user