mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 05:44:44 +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);
|
Window.processingGif.connect(processingGif);
|
||||||
|
|
||||||
Script.scriptEnding.connect(function () {
|
Script.scriptEnding.connect(function () {
|
||||||
button.clicked.disconnect(onClicked);
|
if (buttonConnected) {
|
||||||
buttonConnected = false;
|
button.clicked.disconnect(onClicked);
|
||||||
|
buttonConnected = false;
|
||||||
|
}
|
||||||
if (tablet) {
|
if (tablet) {
|
||||||
tablet.removeButton(button);
|
tablet.removeButton(button);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue