diff --git a/scripts/system/pal.js b/scripts/system/pal.js index 2b77e4bb0e..6eda5cf036 100644 --- a/scripts/system/pal.js +++ b/scripts/system/pal.js @@ -673,7 +673,7 @@ Window.domainConnectionRefused.connect(clearLocalQMLDataAndClosePAL); // Script.scriptEnding.connect(function () { button.clicked.disconnect(onClicked); - tablet.removeButton(buttonName); + tablet.removeButton(button); pal.visibleChanged.disconnect(onVisibleChanged); pal.closed.disconnect(off); Users.usernameFromIDReply.disconnect(usernameFromIDReply);