From 0318640f620d75098ccf535fea30f716ea625515 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 28 Dec 2020 14:48:43 +0000 Subject: 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 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): -- cgit v0.10.2