New update to current version
This commit is contained in:
@@ -17,19 +17,13 @@ Scope {
|
||||
onTriggered: GlobalStates.notificationPanelOpen = false
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: quickHideTimer
|
||||
interval: 1
|
||||
onTriggered: GlobalStates.notificationPanelOpen = false
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: notificationPanelLoader
|
||||
active: GlobalStates.notificationPanelOpen
|
||||
onActiveChanged: {
|
||||
if (notificationPanelLoader.active & NotificationService.amountNotifications == 0) {
|
||||
quickHideTimer.restart();
|
||||
}
|
||||
if (notificationPanelLoader.active) {
|
||||
hideTimer.restart();
|
||||
}
|
||||
}
|
||||
|
||||
sourceComponent: PanelWindow {
|
||||
@@ -87,4 +81,4 @@ Scope {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user