diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-11-29 09:03:30 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-11-29 09:12:14 (GMT) |
| commit | c6d5e841a0574198a530d4d400ec9dc7adf36034 (patch) | |
| tree | 012d89adebff81e8a02b930962e90e365b29b52b /wasp/apps | |
| parent | bcf616f7bc6dda3cb2bb2b92296b06cbdfbd7999 (diff) | |
apps: pager: notifications: dismiss confirmation view on app exit
Currently the confirmation view remains active when we switch away from
the notification view. Ensure we dismiss when we background the
application.
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/apps')
| -rw-r--r-- | wasp/apps/pager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wasp/apps/pager.py b/wasp/apps/pager.py index 15b0bab..f9de947 100644 --- a/wasp/apps/pager.py +++ b/wasp/apps/pager.py @@ -94,6 +94,10 @@ class NotificationApp(PagerApp): wasp.system.request_event(wasp.EventMask.TOUCH) super().foreground() + def background(self): + self.confirmation_view.active = False + super().background() + def swipe(self, event): if event[0] == wasp.EventType.DOWN: self.confirmation_view.active = True |
