turned an else into an else if

This commit is contained in:
Preston Bezos 2019-06-12 09:29:43 -07:00
parent 53e8051cc2
commit 266c08227f

View file

@ -461,8 +461,8 @@ var TIMEOUT_BEFORE_REHIDE_TOOLBAR_MS = 700
function onDisplayModeChanged(isHMDMode) {
if (isHMDMode) {
Camera.setModeString("first person");
} else {
//works for now, but not a permanent fix by any means.
} else if (Settings.getValue("simplifiedUI/keepExistingUIAndScripts", false)) {
// works for now, but not a permanent fix by any means.
Script.setTimeout(function () {
var toolbar = Toolbars.getToolbar(TOOLBAR_NAME);
toolbar.writeProperty("visible", false);