Notifications: ensure they are not sandwitched between panels

+ Always access lockScreen via panel service and removed deprecation
notice.
This commit is contained in:
ItsLemmy
2025-11-21 15:18:38 -05:00
parent f46915d2c3
commit 7a68030f69
5 changed files with 19 additions and 105 deletions
+2 -18
View File
@@ -120,24 +120,8 @@ Item {
// New preferred method - lock the screen
function lock() {
// Only lock if not already locked (prevents the red screen issue)
// Note: No unlock via IPC for security reasons
if (!lockScreen.active) {
lockScreen.triggeredViaDeprecatedCall = false;
lockScreen.active = true;
}
}
// Deprecated: Use 'lockScreen lock' instead
function toggle() {
// Mark as triggered via deprecated call - warning will show in lock screen
lockScreen.triggeredViaDeprecatedCall = true;
// Log deprecation warning for users checking logs
Logger.w("IPC", "The 'lockScreen toggle' IPC call is deprecated. Use 'lockScreen lock' instead.");
// Still functional for backward compatibility
if (!lockScreen.active) {
lockScreen.active = true;
if (!PanelService.lockScreen.active) {
PanelService.lockScreen.active = true;
}
}
}