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:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user