1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

suppress brightness OSD when operating from cc

This commit is contained in:
bbedward
2025-10-22 16:37:36 -04:00
parent 072883dcd4
commit 1db4e92779
2 changed files with 5 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ Row {
value: targetBrightness
onSliderValueChanged: function(newValue) {
if (DisplayService.brightnessAvailable && targetDeviceName) {
DisplayService.setBrightness(newValue, targetDeviceName)
DisplayService.setBrightness(newValue, targetDeviceName, true)
}
}
thumbOutlineColor: Theme.surfaceContainer

View File

@@ -66,9 +66,11 @@ Singleton {
}
}
function setBrightness(percentage, device) {
function setBrightness(percentage, device, suppressOsd) {
setBrightnessInternal(percentage, device)
brightnessChanged()
if (!suppressOsd) {
brightnessChanged()
}
}
function setCurrentDevice(deviceName, saveToSession = false) {