From 5dc4ba504cb2a6e2b9f82897f3c2fc6a7aac2338 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Tue, 9 Sep 2025 18:15:44 +0200 Subject: [PATCH] PowerProfileService: don't show toast on non valid power profile --- Services/PowerProfileService.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Services/PowerProfileService.qml b/Services/PowerProfileService.qml index 950e4ee..1447227 100644 --- a/Services/PowerProfileService.qml +++ b/Services/PowerProfileService.qml @@ -52,7 +52,11 @@ Singleton { target: powerProfiles function onProfileChanged() { root.profile = powerProfiles.profile - ToastService.showNotice("Power Profile", root.profileName()) + // Only show toast if we have a valid profile name (not "Unknown") + const profileName = root.profileName() + if (profileName !== "Unknown") { + ToastService.showNotice("Power Profile", profileName) + } } } }