Do not use timer for switching bubble button active state

This commit is contained in:
vladest 2018-03-15 19:43:00 +01:00
parent 2487e34ee8
commit c385bf26e9

View file

@ -89,14 +89,8 @@
bubbleOverlayTimestamp = nowTimestamp; bubbleOverlayTimestamp = nowTimestamp;
Script.update.connect(update); Script.update.connect(update);
updateConnected = true; updateConnected = true;
writeButtonProperties(bubbleButtonFlashState);
// Flash button bubbleButtonFlashState = !bubbleButtonFlashState;
if (!bubbleFlashTimer) {
bubbleFlashTimer = Script.setInterval(function () {
writeButtonProperties(bubbleButtonFlashState);
bubbleButtonFlashState = !bubbleButtonFlashState;
}, 500);
}
} }
// Called from the C++ scripting interface to show the bubble overlay // Called from the C++ scripting interface to show the bubble overlay