From 4d8cf2207d42cd6af006240bda42b12b2a71f297 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Sun, 24 Aug 2025 18:57:15 +0200 Subject: [PATCH] Small change in LockScreen --- Modules/LockScreen/LockScreen.qml | 6 ++++-- Modules/Toast/ToastManager.qml | 4 ++-- Services/ToastService.qml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Modules/LockScreen/LockScreen.qml b/Modules/LockScreen/LockScreen.qml index c415d03..674c471 100644 --- a/Modules/LockScreen/LockScreen.qml +++ b/Modules/LockScreen/LockScreen.qml @@ -48,6 +48,8 @@ Loader { property string password: "" property bool pamAvailable: typeof PamContext !== "undefined" + + function unlockAttempt() { Logger.log("LockScreen", "Unlock attempt started") @@ -626,7 +628,7 @@ Loader { spacing: Style.marginM * scaling NText { - text: "root@noctalia:~$" + text: Quickshell.env("USER") + "@noctalia:~$" color: Color.mPrimary font.family: Settings.data.ui.fontFixed font.pointSize: Style.fontSizeL * scaling @@ -664,7 +666,7 @@ Loader { spacing: Style.marginM * scaling NText { - text: "root@noctalia:~$" + text: Quickshell.env("USER") + "@noctalia:~$" color: Color.mPrimary font.family: Settings.data.ui.fontFixed font.pointSize: Style.fontSizeL * scaling diff --git a/Modules/Toast/ToastManager.qml b/Modules/Toast/ToastManager.qml index 0da45c1..8bb8706 100644 --- a/Modules/Toast/ToastManager.qml +++ b/Modules/Toast/ToastManager.qml @@ -19,7 +19,7 @@ Variants { // Only show on screens that have notifications enabled visible: modelData ? (Settings.data.notifications.monitors.includes(modelData.name) - || (Settings.data.notifications.monitors.length === 0)) : false + || (Settings.data.notifications.monitors.length === 0)) : false // Position based on bar location, like Notification popup does anchors { @@ -57,7 +57,7 @@ Variants { Component.onCompleted: { // Only register toasts for screens that have notifications enabled if (modelData ? (Settings.data.notifications.monitors.includes(modelData.name) - || (Settings.data.notifications.monitors.length === 0)) : false) { + || (Settings.data.notifications.monitors.length === 0)) : false) { // Register this toast with the service ToastService.allToasts.push(toast) diff --git a/Services/ToastService.qml b/Services/ToastService.qml index 5db7139..38ce2db 100644 --- a/Services/ToastService.qml +++ b/Services/ToastService.qml @@ -211,7 +211,7 @@ Singleton { break } } - + if (allDismissed) { isShowingToast = false