OSD: hide initial brightness update (prevent showing brightness osd on startup)

This commit is contained in:
lysec
2025-10-12 10:20:09 +02:00
parent 6c2e2fcb64
commit 7d37d5dc17
+7
View File
@@ -42,6 +42,7 @@ Variants {
// Brightness properties
property real lastUpdatedBrightness: 0
readonly property real currentBrightness: lastUpdatedBrightness
property bool brightnessInitialized: false
// Get appropriate icon based on current OSD type
function getIcon() {
@@ -547,6 +548,12 @@ Variants {
function onBrightnessChanged(newBrightness) {
root.lastUpdatedBrightness = newBrightness
if (!brightnessInitialized) {
brightnessInitialized = true
return
}
showOSD("brightness")
}