added global variable script+_manager_running_script to convey the script name to the darktable shortcut system
This commit is contained in:
@@ -325,8 +325,10 @@ local function activate(script)
|
|||||||
local err = nil -- error message returned if module doesn't start
|
local err = nil -- error message returned if module doesn't start
|
||||||
log.msg(log.info, "activating " .. script.name)
|
log.msg(log.info, "activating " .. script.name)
|
||||||
if script.running == false then
|
if script.running == false then
|
||||||
|
script_manager_running_script = script.name
|
||||||
status, err = du.prequire(script.path)
|
status, err = du.prequire(script.path)
|
||||||
log.msg(log.debug, "prequire returned " .. tostring(status) .. " and for err " .. tostring(err))
|
log.msg(log.debug, "prequire returned " .. tostring(status) .. " and for err " .. tostring(err))
|
||||||
|
script_manager_running_script = nil
|
||||||
if status then
|
if status then
|
||||||
pref_write(script.script_name, "bool", true)
|
pref_write(script.script_name, "bool", true)
|
||||||
log.msg(log.screen, _("Loaded ") .. script.script_name)
|
log.msg(log.screen, _("Loaded ") .. script.script_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user