From 3f6a3e25f1040ce0f9155d9a3aed5f2e85aa6cce Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Thu, 16 Mar 2023 20:59:10 -0400 Subject: [PATCH] added global variable script+_manager_running_script to convey the script name to the darktable shortcut system --- tools/script_manager.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/script_manager.lua b/tools/script_manager.lua index eb2db04..a0a0220 100644 --- a/tools/script_manager.lua +++ b/tools/script_manager.lua @@ -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)