fixing toolbar disappering

This commit is contained in:
Dante Ruiz 2018-09-06 11:16:58 -07:00
parent 200f6d540a
commit ec2d89fd25
2 changed files with 4 additions and 5 deletions

View file

@ -3497,8 +3497,6 @@ void Application::setIsInterstitialMode(bool interstitialMode) {
bool interstitialModeEnabled = menu->isOptionChecked("Enable Interstitial");
if (_interstitialMode != interstitialMode && interstitialModeEnabled) {
_interstitialMode = interstitialMode;
DependencyManager::get<OffscreenUi>()->setPinned(_interstitialMode);
emit interstitialModeChanged(_interstitialMode);
}
}

View file

@ -307,7 +307,6 @@
var THE_PLACE = "hifi://TheSpot-dev";
function clickedOnOverlay(overlayID, event) {
print(overlayID + " other: " + loadingToTheSpotID);
if (loadingToTheSpotID === overlayID) {
location.handleLookupString(THE_PLACE);
}
@ -349,8 +348,10 @@
Overlays.editOverlay(loadingBarPlacard, properties);
Overlays.editOverlay(loadingBarProgress, loadingBarProperties);
if (physicsEnabled && !HMD.active) {
toolbar.writeProperty("visible", true);
Menu.setIsOptionChecked("Show Overlays", physicsEnabled);
if (!HMD.active) {
toolbar.writeProperty("visible", physicsEnabled);
}
resetValues();