mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
no more duplicate snapshot buttons after taking reloading scripts
This commit is contained in:
parent
881213259d
commit
d54005b62e
1 changed files with 4 additions and 2 deletions
|
@ -211,8 +211,10 @@ Window.snapshotShared.connect(snapshotShared);
|
|||
Window.processingGif.connect(processingGif);
|
||||
|
||||
Script.scriptEnding.connect(function () {
|
||||
button.clicked.disconnect(onClicked);
|
||||
buttonConnected = false;
|
||||
if (buttonConnected) {
|
||||
button.clicked.disconnect(onClicked);
|
||||
buttonConnected = false;
|
||||
}
|
||||
if (tablet) {
|
||||
tablet.removeButton(button);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue