Fix notification and other small fixes

This commit is contained in:
Ly-sec 2025-08-05 20:15:11 +02:00
parent fb68300746
commit 69d84752f3
10 changed files with 366 additions and 338 deletions

View file

@ -6,7 +6,7 @@ IpcHandler {
property var appLauncherPanel
property var lockScreen
property IdleInhibitor idleInhibitor
property var notificationPopupVariants
property var notificationPopup
target: "globalIPC"
@ -17,18 +17,11 @@ IpcHandler {
function toggleNotificationPopup(): void {
console.log("[IPC] NotificationPopup toggle() called")
if (notificationPopupVariants) {
for (let i = 0; i < notificationPopupVariants.count; i++) {
let popup = notificationPopupVariants.objectAt(i);
if (popup) {
popup.togglePopup();
}
}
}
// Use the global toggle function from the notification manager
notificationPopup.togglePopup();
}
// Toggle Applauncher visibility
function toggleLauncher(): void {
if (!appLauncherPanel) {
console.warn("AppLauncherIpcHandler: appLauncherPanel not set!");
@ -42,7 +35,7 @@ IpcHandler {
}
}
// Toggle LockScreen
function toggleLock(): void {
if (!lockScreen) {
console.warn("LockScreenIpcHandler: lockScreen not set!");
@ -51,4 +44,4 @@ IpcHandler {
console.log("[IPC] LockScreen show() called");
lockScreen.locked = true;
}
}
}