mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 11:40:00 +00:00
Notifications: ensure they are not sandwitched between panels
+ Always access lockScreen via panel service and removed deprecation notice.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user