added global variable script+_manager_running_script to convey the script name to the darktable shortcut system

This commit is contained in:
Bill Ferguson
2023-03-16 20:59:10 -04:00
parent 030b360e57
commit 3f6a3e25f1

View File

@@ -325,8 +325,10 @@ local function activate(script)
local err = nil -- error message returned if module doesn't start
log.msg(log.info, "activating " .. script.name)
if script.running == false then
script_manager_running_script = script.name
status, err = du.prequire(script.path)
log.msg(log.debug, "prequire returned " .. tostring(status) .. " and for err " .. tostring(err))
script_manager_running_script = nil
if status then
pref_write(script.script_name, "bool", true)
log.msg(log.screen, _("Loaded ") .. script.script_name)