UI - Fix changing UI settings (#8541)

This commit is contained in:
PabstMirror
2021-10-17 00:48:12 -05:00
committed by GitHub
parent e6bc44225f
commit 77fe9ab434

View File

@ -40,7 +40,7 @@ GVAR(elementsSet) = call CBA_fnc_createNamespace;
if (_name in ELEMENTS_BASIC) then { if (_name in ELEMENTS_BASIC) then {
[true] call FUNC(setElements); [true] call FUNC(setElements);
} else { } else {
private _nameNoPrefix = toLower (_name select [_delimPos]); private _nameNoPrefix = toLower (_name select [7]);
private _cachedElement = GVAR(configCache) getVariable _nameNoPrefix; private _cachedElement = GVAR(configCache) getVariable _nameNoPrefix;
if (!isNil "_cachedElement") then { if (!isNil "_cachedElement") then {
[_nameNoPrefix, _value, true] call FUNC(setAdvancedElement); [_nameNoPrefix, _value, true] call FUNC(setAdvancedElement);