mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-03 10:56:16 +00:00
OSD: hide initial brightness update (prevent showing brightness osd on startup)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user