1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -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 value: targetBrightness
onSliderValueChanged: function(newValue) { onSliderValueChanged: function(newValue) {
if (DisplayService.brightnessAvailable && targetDeviceName) { if (DisplayService.brightnessAvailable && targetDeviceName) {
DisplayService.setBrightness(newValue, targetDeviceName) DisplayService.setBrightness(newValue, targetDeviceName, true)
} }
} }
thumbOutlineColor: Theme.surfaceContainer thumbOutlineColor: Theme.surfaceContainer

View File

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