diff options
| author | kozova1 <mug66kk@gmail.com> | 2020-11-26 11:46:59 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-11-26 21:09:22 (GMT) |
| commit | b1326e16092babc7d353f2fdc724b6decc63c129 (patch) | |
| tree | 5251e24779dbfd89b0eb28c343f2a4e6fbeeb840 /wasp/apps | |
| parent | 02777d5dff0989a7b1c5e1a5838a281ae3ad4240 (diff) | |
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>
Diffstat (limited to 'wasp/apps')
| -rw-r--r-- | wasp/apps/settings.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wasp/apps/settings.py b/wasp/apps/settings.py index 2bad080..2ed3217 100644 --- a/wasp/apps/settings.py +++ b/wasp/apps/settings.py @@ -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() |
