1
0
Fork 0

apps: settings: Fix initial slider value

When the Settings app is launched, it shows the "Mid" text (this is
correct), but the slider is at the lowest position. After moving the
slider it functions correctly, so this fix is mostly cosmetic.

Signed-off-by: kozova1 <mug66kk@gmail.com>
This commit is contained in:
kozova1 2020-11-26 13:46:59 +02:00 committed by Daniel Thompson
parent 02777d5dff
commit b1326e1609

View file

@ -19,6 +19,7 @@ class SettingsApp():
def __init__(self): def __init__(self):
self._slider = wasp.widgets.Slider(3, 10, 90) self._slider = wasp.widgets.Slider(3, 10, 90)
self._slider.value = wasp.system.brightness - 1
def foreground(self): def foreground(self):
self._draw() self._draw()