inline if didn't work. Added intermediate register_event function in transition library

This commit is contained in:
wpferguson
2021-02-10 00:18:48 -05:00
parent 2b28f021ee
commit b1498aa664
33 changed files with 139 additions and 57 deletions

View File

@@ -50,6 +50,7 @@ As an alternative option you can choose to show the image file names as symbolic
local dt = require "darktable"
local du = require "lib/dtutils"
local df = require "lib/dtutils.file"
require "lib/darktable_transition"
local dsys = require "lib/dtutils.system"
local gettext = dt.gettext
@@ -209,7 +210,7 @@ if act_os ~= "windows" then
end
dt.register_event(
CURR_API_STRING >= "6.2.1" and "OpenInExplorer", "shortcut" or "shortcut",
"OpenInExplorer", "shortcut",
function(event, shortcut) open_in_fmanager() end,
"OpenInExplorer"
)