diff options
Diffstat (limited to 'macros/garret.depctrl_config.lua')
-rw-r--r-- | macros/garret.depctrl_config.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/macros/garret.depctrl_config.lua b/macros/garret.depctrl_config.lua index cfce03b..5e94a76 100644 --- a/macros/garret.depctrl_config.lua +++ b/macros/garret.depctrl_config.lua @@ -142,9 +142,11 @@ local function get_config(data) value = config.logMaxSize or defaults.logMaxSize }, } - pressed, res = aegisub.dialog.display(dialog) - if pressed == false then + local pressed, res = aegisub.dialog.display(dialog, {"Cancel", "Reset", "OK"}) + if pressed == "Cancel" then aegisub.cancel() + elseif pressed == "Reset" then + return {} end res.traceLevel = tonumber(res.traceLevel:match("^(%d)")) res.updateInterval = human_to_seconds(res.updateInterval) |