mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 10:44:46 +00:00
Never allow setting brightness to 0
This commit is contained in:
parent
07735e696b
commit
3bff5cea4b
1 changed files with 1 additions and 3 deletions
|
|
@ -59,9 +59,7 @@ RowLayout {
|
||||||
id: brightnessSlider
|
id: brightnessSlider
|
||||||
width: parent.width
|
width: parent.width
|
||||||
onMoved: brightnessRoot.moved()
|
onMoved: brightnessRoot.moved()
|
||||||
// Don't allow the slider to turn off the screen
|
from: 1
|
||||||
// Please see https://git.reviewboard.kde.org/r/122505/ for more information
|
|
||||||
from: to > 100 ? 1 : 0
|
|
||||||
//stepSize: 1
|
//stepSize: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue