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>
This commit is contained in:
Daniel Thompson 2020-12-28 14:48:43 +00:00
parent 21210c5c07
commit 0318640f62

View file

@ -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):