mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Merge pull request #9874 from hyperlogic/bug-fix/toolbar-fade
Fix for visible empty toolbar when switching from desktop to HMD mode.
This commit is contained in:
commit
c89a4c4786
1 changed files with 1 additions and 3 deletions
|
@ -120,8 +120,6 @@ 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
|
||||
|
@ -156,7 +154,7 @@ Window {
|
|||
updatePinned();
|
||||
|
||||
if (buttons.length === 0) {
|
||||
unpinnedAlpha = 0;
|
||||
fadeOut(function () {});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue