apps: stopwatch: Fix redraw bug (and remove some old test code)
This commit is contained in:
parent
9348e758b2
commit
e854998268
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ class StopwatchApp():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._meter = wasp.widgets.BatteryMeter()
|
self._meter = wasp.widgets.BatteryMeter()
|
||||||
self._reset()
|
self._reset()
|
||||||
self._count = 999*6000
|
self._count = 0
|
||||||
|
|
||||||
def foreground(self):
|
def foreground(self):
|
||||||
"""Activate the application."""
|
"""Activate the application."""
|
||||||
|
@ -90,6 +90,7 @@ class StopwatchApp():
|
||||||
draw = wasp.watch.drawable
|
draw = wasp.watch.drawable
|
||||||
draw.fill()
|
draw.fill()
|
||||||
|
|
||||||
|
self._last_count = -1
|
||||||
self._update()
|
self._update()
|
||||||
self._meter.draw()
|
self._meter.draw()
|
||||||
self._draw_splits()
|
self._draw_splits()
|
||||||
|
|
Loading…
Reference in a new issue