mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:58:03 +02:00
turned an else into an else if
This commit is contained in:
parent
53e8051cc2
commit
266c08227f
1 changed files with 2 additions and 2 deletions
|
@ -461,8 +461,8 @@ var TIMEOUT_BEFORE_REHIDE_TOOLBAR_MS = 700
|
||||||
function onDisplayModeChanged(isHMDMode) {
|
function onDisplayModeChanged(isHMDMode) {
|
||||||
if (isHMDMode) {
|
if (isHMDMode) {
|
||||||
Camera.setModeString("first person");
|
Camera.setModeString("first person");
|
||||||
} else {
|
} else if (Settings.getValue("simplifiedUI/keepExistingUIAndScripts", false)) {
|
||||||
//works for now, but not a permanent fix by any means.
|
// works for now, but not a permanent fix by any means.
|
||||||
Script.setTimeout(function () {
|
Script.setTimeout(function () {
|
||||||
var toolbar = Toolbars.getToolbar(TOOLBAR_NAME);
|
var toolbar = Toolbars.getToolbar(TOOLBAR_NAME);
|
||||||
toolbar.writeProperty("visible", false);
|
toolbar.writeProperty("visible", false);
|
||||||
|
|
Loading…
Reference in a new issue