Skip to content

Commit 3f6a3e2

Browse files
committed
added global variable script+_manager_running_script to convey the script name to the darktable shortcut system
1 parent 030b360 commit 3f6a3e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/script_manager.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,10 @@ local function activate(script)
325325
local err = nil -- error message returned if module doesn't start
326326
log.msg(log.info, "activating " .. script.name)
327327
if script.running == false then
328+
script_manager_running_script = script.name
328329
status, err = du.prequire(script.path)
329330
log.msg(log.debug, "prequire returned " .. tostring(status) .. " and for err " .. tostring(err))
331+
script_manager_running_script = nil
330332
if status then
331333
pref_write(script.script_name, "bool", true)
332334
log.msg(log.screen, _("Loaded ") .. script.script_name)

0 commit comments

Comments
 (0)