mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
some extra checks on settings values
This commit is contained in:
parent
3922192cfc
commit
2b1e629cca
1 changed files with 3 additions and 2 deletions
|
@ -15,12 +15,13 @@ var TURN_RATE = 1000;
|
|||
var MENU_ITEM_NAME = "Advanced Movement For Hand Controllers";
|
||||
var SETTINGS_KEY = 'advancedMovementForHandControllersIsChecked';
|
||||
var previousSetting = Settings.getValue(SETTINGS_KEY);
|
||||
if (previousSetting === '' || previousSetting === false) {
|
||||
if (previousSetting === '' || previousSetting === false || previousSetting === 'false') {
|
||||
previousSetting = false;
|
||||
isChecked = false;
|
||||
}
|
||||
|
||||
if (previousSetting === true) {
|
||||
if (previousSetting === true || previousSetting === 'true') {
|
||||
previousSetting = true;
|
||||
isChecked = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue