summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-28 14:48:43 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-29 08:59:53 (GMT)
commit0318640f620d75098ccf535fea30f716ea625515 (patch)
treedf8b09564443580f6dd84c91c32ff6c2efa4c0a7
parent21210c5c072ddd174f91bd7c80a1b2a00cb39bf3 (diff)
apps: calc: Remember the results between invocations
Currently if you spend more then 15 seconds looking up figures or transcribing the answer then the system will switch back to the clock and the answer will be lost. Fix this by remembering the output between invocations. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
-rw-r--r--wasp/apps/calc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/apps/calc.py b/wasp/apps/calc.py
index e5ea04d..520ac46 100644
--- a/wasp/apps/calc.py
+++ b/wasp/apps/calc.py
@@ -53,7 +53,7 @@ class CalculatorApp():
def foreground(self):
self._draw()
- self.output = ""
+ self._update()
wasp.system.request_event(wasp.EventMask.TOUCH)
def touch(self, event):