#536 proper clearing of cleared config values

This commit is contained in:
Mikayla Fischler
2024-08-20 20:56:41 -04:00
parent c323967b6a
commit 6917697290
10 changed files with 15 additions and 10 deletions

View File

@@ -379,7 +379,8 @@ local function config_view(display)
end
local function save_and_continue()
for k, v in pairs(tmp_cfg) do
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

View File

@@ -20,7 +20,7 @@ local pocket = require("pocket.pocket")
local renderer = require("pocket.renderer")
local threads = require("pocket.threads")
local POCKET_VERSION = "v0.11.5-alpha"
local POCKET_VERSION = "v0.11.6-alpha"
local println = util.println
local println_ts = util.println_ts