mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-05 05:12:05 -04:00
brightness: fix ddc erasing devices, fix OSD behaviors
This commit is contained in:
@@ -74,6 +74,10 @@ Singleton {
|
||||
}
|
||||
|
||||
function updateSingleDevice(device) {
|
||||
if (device.class === "leds") {
|
||||
return;
|
||||
}
|
||||
|
||||
const isUserControlled = isDeviceUserControlled(device.id);
|
||||
if (isUserControlled) {
|
||||
return;
|
||||
@@ -267,9 +271,11 @@ Singleton {
|
||||
return;
|
||||
}
|
||||
|
||||
const isLedDevice = deviceInfo?.class === "leds";
|
||||
|
||||
if (suppressOsd) {
|
||||
markDeviceUserControlled(actualDevice);
|
||||
} else {
|
||||
} else if (!isLedDevice) {
|
||||
markDevicePendingOsd(actualDevice);
|
||||
}
|
||||
|
||||
@@ -278,6 +284,10 @@ Singleton {
|
||||
deviceBrightness = newBrightness;
|
||||
brightnessVersion++;
|
||||
|
||||
if (isLedDevice && !suppressOsd) {
|
||||
brightnessChanged(true);
|
||||
}
|
||||
|
||||
if (isExponential) {
|
||||
const newUserSet = Object.assign({}, deviceBrightnessUserSet);
|
||||
newUserSet[actualDevice] = clampedValue;
|
||||
|
||||
Reference in New Issue
Block a user