feat: add ability to toggle notification popup visibility via IPC

This commit is contained in:
JPratama7 2025-07-27 18:55:13 +07:00
parent ca48eef612
commit f8db6ba9df
No known key found for this signature in database
GPG key ID: CD3EB7D0490C5F4B
3 changed files with 19 additions and 2 deletions

View file

@ -62,7 +62,9 @@ Scope {
onNotification: function (notification) {
console.log("Notification received:", notification.appName);
notification.tracked = true;
notificationPopup.addNotification(notification);
if (notificationPopup.notificationsVisible) {
notificationPopup.addNotification(notification);
}
if (notificationHistoryWin) {
notificationHistoryWin.addToHistory({
id: notification.id,
@ -96,6 +98,7 @@ Scope {
appLauncherPanel: appLauncherPanel
lockScreen: lockScreen
idleInhibitor: idleInhibitor
notificationPopup: notificationPopup
}
Connections {