mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
Fix for system toolbar hiding when scripts are reloaded
This commit is contained in:
parent
5c782deb4d
commit
379b7bc56d
1 changed files with 3 additions and 1 deletions
|
@ -120,6 +120,8 @@ Window {
|
||||||
function addButton(properties) {
|
function addButton(properties) {
|
||||||
properties = properties || {}
|
properties = properties || {}
|
||||||
|
|
||||||
|
unpinnedAlpha = 1;
|
||||||
|
|
||||||
// If a name is specified, then check if there's an existing button with that name
|
// 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 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
|
// and allow scripts to be idempotent so they don't duplicate buttons if they're reloaded
|
||||||
|
@ -154,7 +156,7 @@ Window {
|
||||||
updatePinned();
|
updatePinned();
|
||||||
|
|
||||||
if (buttons.length === 0) {
|
if (buttons.length === 0) {
|
||||||
visible = false;
|
unpinnedAlpha = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue