aboutsummaryrefslogtreecommitdiffstats
path: root/macros/garret.depctrl_config.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-12-21 07:30:40 +0000
committergarret <garret@airmail.cc>2022-12-21 07:30:40 +0000
commitb7f76f4caf31ef238ebbc1599c992387a841af31 (patch)
tree7a981ce756d9ae2fdbee5d4f6627e51710819900 /macros/garret.depctrl_config.lua
parent6a91197b5430aa6b44b3eb04d2051dddd1090a72 (diff)
downloadaegisub-scripts-b7f76f4caf31ef238ebbc1599c992387a841af31.tar.gz
aegisub-scripts-b7f76f4caf31ef238ebbc1599c992387a841af31.tar.bz2
aegisub-scripts-b7f76f4caf31ef238ebbc1599c992387a841af31.zip
depctrl global config: use OR helper function i forgor 💀 about
>write function specifically to help do a thing >time passes >have to do the thing again >dont use function i wrote genius
Diffstat (limited to 'macros/garret.depctrl_config.lua')
-rw-r--r--macros/garret.depctrl_config.lua4
1 files 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