better ddcutil handling, revert to using onMoved brightness slider, fix osd region

This commit is contained in:
2026-07-08 16:17:37 +02:00
parent 1cbe9a9f8a
commit b19b630a77
9 changed files with 31 additions and 80 deletions
+6 -8
View File
@@ -102,15 +102,13 @@ Item {
to: 1.0
value: root.brightness
onPressedChanged: {
if (!pressed) {
if (Config.osd.allMonBrightness) {
for (const mon of Brightness.monitors) {
mon.setBrightness(value);
}
} else {
root.monitor?.setBrightness(value);
onMoved: {
if (Config.osd.allMonBrightness) {
for (const mon of Brightness.monitors) {
mon.setBrightness(value);
}
} else {
root.monitor?.setBrightness(value);
}
}
}