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:
parent
02777d5dff
commit
b1326e1609
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ class SettingsApp():
|
|||
|
||||
def __init__(self):
|
||||
self._slider = wasp.widgets.Slider(3, 10, 90)
|
||||
self._slider.value = wasp.system.brightness - 1
|
||||
|
||||
def foreground(self):
|
||||
self._draw()
|
||||
|
|
Loading…
Reference in a new issue