depctrl global config: add reset button
This commit is contained in:
parent
ffcca2c076
commit
9a260cb6d2
|
@ -142,9 +142,11 @@ local function get_config(data)
|
||||||
value = config.logMaxSize or defaults.logMaxSize
|
value = config.logMaxSize or defaults.logMaxSize
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
pressed, res = aegisub.dialog.display(dialog)
|
local pressed, res = aegisub.dialog.display(dialog, {"Cancel", "Reset", "OK"})
|
||||||
if pressed == false then
|
if pressed == "Cancel" then
|
||||||
aegisub.cancel()
|
aegisub.cancel()
|
||||||
|
elseif pressed == "Reset" then
|
||||||
|
return {}
|
||||||
end
|
end
|
||||||
res.traceLevel = tonumber(res.traceLevel:match("^(%d)"))
|
res.traceLevel = tonumber(res.traceLevel:match("^(%d)"))
|
||||||
res.updateInterval = human_to_seconds(res.updateInterval)
|
res.updateInterval = human_to_seconds(res.updateInterval)
|
||||||
|
|
Loading…
Reference in New Issue