Merge pull request #9723 from hyperlogic/bug-fix/tablet-ui-reload-script-bug

Fix for system toolbar hiding when scripts are reloaded
This commit is contained in:
Seth Alves 2017-02-22 07:34:20 -08:00 committed by GitHub
commit a8de6c8c93

View file

@ -120,6 +120,8 @@ Window {
function addButton(properties) {
properties = properties || {}
unpinnedAlpha = 1;
// If a name is specified, then check if there's an existing button with that name
// and return it if so. This will allow multiple clients to listen to a single button,
// and allow scripts to be idempotent so they don't duplicate buttons if they're reloaded
@ -154,7 +156,7 @@ Window {
updatePinned();
if (buttons.length === 0) {
visible = false;
unpinnedAlpha = 0;
}
}