summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthiswillbeyourgithub <github@32mail.33mail.comm>2022-02-24 17:20:26 (GMT)
committerDaniel Thompson <daniel.thompson@linaro.org>2022-02-27 20:15:28 (GMT)
commit7ac9395dba988cdef45aabde4404810446b00067 (patch)
treec6846c2f1346cd91a5b69a9bcf0e39e7aef70179
parenta76c2413fb1235286701500933b45be537741c49 (diff)
fix: switch app to itself cancel vibrations
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
-rw-r--r--wasp/wasp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index 52448b6..2e41537 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -245,6 +245,9 @@ class Manager():
def switch(self, app):
"""Switch to the requested application.
"""
+ if self.app is app:
+ return
+
if self.app:
if 'background' in dir(self.app):
try: