Settings rework...
This commit is contained in:
parent
74b233798d
commit
fb68300746
63 changed files with 7139 additions and 1026 deletions
|
|
@ -6,7 +6,7 @@ IpcHandler {
|
|||
property var appLauncherPanel
|
||||
property var lockScreen
|
||||
property IdleInhibitor idleInhibitor
|
||||
property var notificationPopup
|
||||
property var notificationPopupVariants
|
||||
|
||||
target: "globalIPC"
|
||||
|
||||
|
|
@ -17,10 +17,18 @@ IpcHandler {
|
|||
|
||||
function toggleNotificationPopup(): void {
|
||||
console.log("[IPC] NotificationPopup toggle() called")
|
||||
notificationPopup.togglePopup();
|
||||
|
||||
if (notificationPopupVariants) {
|
||||
for (let i = 0; i < notificationPopupVariants.count; i++) {
|
||||
let popup = notificationPopupVariants.objectAt(i);
|
||||
if (popup) {
|
||||
popup.togglePopup();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Toggle Applauncher visibility
|
||||
|
||||
function toggleLauncher(): void {
|
||||
if (!appLauncherPanel) {
|
||||
console.warn("AppLauncherIpcHandler: appLauncherPanel not set!");
|
||||
|
|
@ -34,7 +42,7 @@ IpcHandler {
|
|||
}
|
||||
}
|
||||
|
||||
// Toggle LockScreen
|
||||
|
||||
function toggleLock(): void {
|
||||
if (!lockScreen) {
|
||||
console.warn("LockScreenIpcHandler: lockScreen not set!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue