mirror of
https://github.com/overte-org/community-apps.git
synced 2025-04-06 01:02:34 +02:00
Fix button not being removed upon script stop or restart
This commit is contained in:
parent
9886795790
commit
b7e93e6615
1 changed files with 3 additions and 1 deletions
|
@ -128,7 +128,9 @@
|
|||
|
||||
|
||||
function cleanup() {
|
||||
tablet.webEventReceived.disconnect(onMoreAppWebEventReceived);
|
||||
if (Appstatus) {
|
||||
tablet.webEventReceived.disconnect(onMoreAppWebEventReceived);
|
||||
}
|
||||
tablet.screenChanged.disconnect(onScreenChanged);
|
||||
tablet.removeButton(button);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue