1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-13 00:42:49 -05:00

brightness: dont cap to 1 minimum for non-backlight/ddc

This commit is contained in:
bbedward
2025-11-03 15:39:49 -05:00
parent 3640d8bd24
commit 3f70ca3506
4 changed files with 24 additions and 4 deletions

View File

@@ -310,6 +310,13 @@ Rectangle {
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
if (screenName && screenName.length > 0 && modelData.name !== currentDeviceName) {
const pins = JSON.parse(JSON.stringify(SettingsData.brightnessDevicePins || {}))
if (pins[screenName]) {
delete pins[screenName]
SettingsData.setBrightnessDevicePins(pins)
}
}
currentDeviceName = modelData.name
deviceNameChanged(modelData.name)
}