mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
PowerProfileService: don't show toast on non valid power profile
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user