Merge branch 'devel' into 367-list-duplicate-and-missing-device-ids

This commit is contained in:
Mikayla
2024-08-21 13:56:50 +00:00
9 changed files with 25 additions and 10 deletions

View File

@@ -907,7 +907,10 @@ local function config_view(display)
end
local function save_and_continue()
for k, v in pairs(tmp_cfg) do settings.set(k, v) end
for _, field in ipairs(fields) do
local k, v = field[1], tmp_cfg[field[1]]
if v == nil then settings.unset(k) else settings.set(k, v) end
end
if settings.save("/supervisor.settings") then
load_settings(settings_cfg, true)