Fix issue where settings could not be saved

this caused a bug where models could not be opened in the web app
This commit is contained in:
JannisX11 2021-03-08 17:35:03 +01:00
parent 37b30e2916
commit ba59067bc8

View File

@ -290,6 +290,7 @@ const Settings = {
}
for (var id in settings) {
var setting = settings[id];
if (!Condition(setting.condition)) return;
if (setting.onChange && hasSettingChanged(id)) {
setting.onChange(setting.value);
}
@ -307,7 +308,7 @@ const Settings = {
var items = {};
for (var key in settings) {
var setting = settings[key];
if (Condition(setting)) {
if (Condition(setting.condition)) {
var name = tl('settings.'+key).toLowerCase();
var desc = tl('settings.'+key+'.desc').toLowerCase();
var missmatch = false;