aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macros/garret.depctrl_config.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/macros/garret.depctrl_config.lua b/macros/garret.depctrl_config.lua
index 5d038c0..bda4a28 100644
--- a/macros/garret.depctrl_config.lua
+++ b/macros/garret.depctrl_config.lua
@@ -62,8 +62,7 @@ local function get_human_filesize(bytes)
return bytes
end
-local function get_config(data)
- local config = data.config
+local function get_config(config)
local defaults = {updaterEnabled = true, updateInterval = 302400, traceLevel = 3, extraFeeds = { }, tryAllFeeds = false, dumpFeeds = true, configDir = "?user/config", logMaxFiles = 200, logMaxAge = 604800, logMaxSize = 10 * (10 ^ 6), updateWaitTimeout = 60, updateOrphanTimeout = 600, logDir = "?user/log", writeLogs = true}
local dialog = {
{ class="checkbox", name="updaterEnabled",
@@ -178,7 +177,7 @@ end
local function change_config(new) -- i think i might be thinning out the soup a bit too much
local config_path = get_config_path()
local data = read_json(config_path)
- data.config = new(data)
+ data.config = new(data.config)
write_json(config_path, data)
end