From b7f76f4caf31ef238ebbc1599c992387a841af31 Mon Sep 17 00:00:00 2001 From: garret Date: Wed, 21 Dec 2022 07:30:40 +0000 Subject: [PATCH] =?UTF-8?q?depctrl=20global=20config:=20use=20OR=20helper?= =?UTF-8?q?=20function=20i=20forgor=20=F0=9F=92=80=20about?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit >write function specifically to help do a thing >time passes >have to do the thing again >dont use function i wrote genius --- macros/garret.depctrl_config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/garret.depctrl_config.lua b/macros/garret.depctrl_config.lua index df9596a..ad3e663 100644 --- a/macros/garret.depctrl_config.lua +++ b/macros/garret.depctrl_config.lua @@ -1,7 +1,7 @@ script_name="DepCtrl Global Config" script_description="the future is now" script_author = "garret" -script_version = "1.3.0" +script_version = "1.3.1" script_namespace = "garret.depctrl_config" local DependencyControl = require("l0.DependencyControl") @@ -183,7 +183,7 @@ end local function write_config(new) for k, v in pairs(new) do if (v == nil) -- allow nil, so the reset to defaults button works - or v ~= (DependencyControl.config.c[k] or DependencyControl.config.defaults[k]) -- check it's not the current value anyway + or v ~= get_bool(DependencyControl.config.c[k], DependencyControl.config.defaults[k]) -- check it's not the current value anyway then -- changed, save DependencyControl.config.c[k] = v