Added compatibility for lua events API change 6.2.1.

This commit is contained in:
wpferguson
2021-02-01 18:27:20 -05:00
parent da0235ab27
commit ade7008127
32 changed files with 109 additions and 56 deletions

View File

@@ -65,6 +65,7 @@ end
local act_os = dt.configuration.running_os
local PS = act_os == "windows" and "\\" or "/"
local CURR_API_STRING = dt.configuration.api_version_string
--Detect OS and quit if it is not supported.
if act_os ~= "macos" and act_os ~= "windows" and act_os ~= "linux" then
@@ -208,7 +209,7 @@ if act_os ~= "windows" then
end
dt.register_event(
"shortcut",
CURR_API_STRING >= "6.2.1" and "OpenInExplorer", "shortcut" or "shortcut",
function(event, shortcut) open_in_fmanager() end,
"OpenInExplorer"
)