From 40b7e34c0be04b4a0c905a2b8734e631a2719775 Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Mon, 13 Mar 2017 14:23:13 -0700 Subject: [PATCH] Fix for visible empty toolbar when switching from desktop to HMD mode. --- interface/resources/qml/hifi/toolbars/Toolbar.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/interface/resources/qml/hifi/toolbars/Toolbar.qml b/interface/resources/qml/hifi/toolbars/Toolbar.qml index c0d984e822..f80e0f8c14 100644 --- a/interface/resources/qml/hifi/toolbars/Toolbar.qml +++ b/interface/resources/qml/hifi/toolbars/Toolbar.qml @@ -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 () {}); } }