fix: switch app to itself cancel vibrations
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
This commit is contained in:
parent
a76c2413fb
commit
7ac9395dba
1 changed files with 3 additions and 0 deletions
|
@ -245,6 +245,9 @@ class Manager():
|
||||||
def switch(self, app):
|
def switch(self, app):
|
||||||
"""Switch to the requested application.
|
"""Switch to the requested application.
|
||||||
"""
|
"""
|
||||||
|
if self.app is app:
|
||||||
|
return
|
||||||
|
|
||||||
if self.app:
|
if self.app:
|
||||||
if 'background' in dir(self.app):
|
if 'background' in dir(self.app):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue