Fixed enable preference not saved

This commit is contained in:
Bill Ferguson
2018-08-19 12:30:45 -04:00
parent 0e4926426f
commit a37c33ec36

View File

@@ -247,6 +247,7 @@ local function activate(script, scriptname)
local status, err = prequire(sm.script_paths[script]) local status, err = prequire(sm.script_paths[script])
-- do it -- do it
if status then if status then
dt.preferences.write("script_manager", script, "bool", true)
dt.print("Loaded " .. scriptname) dt.print("Loaded " .. scriptname)
else else
dt.print(scriptname .. " failed to load") dt.print(scriptname .. " failed to load")