Revert changes to accomadate API changes greater than 6.1

This commit is contained in:
Bill Ferguson
2021-06-11 19:47:43 -04:00
parent 350cdfa436
commit 9d59479049
8 changed files with 55 additions and 201 deletions

View File

@@ -184,20 +184,11 @@ end
-- GUI --
if CURR_API_STRING < "6.2.3" then
dt.gui.libs.image.register_action(
_("show in file explorer"),
function() open_in_fmanager() end,
_("Open the file manager at the selected image's location")
)
else
dt.gui.libs.image.register_action(
"OpenInExplorer", _("show in file explorer"),
function() open_in_fmanager() end,
_("Open the file manager at the selected image's location")
)
end
dt.gui.libs.image.register_action(
_("show in file explorer"),
function() open_in_fmanager() end,
_("Open the file manager at the selected image's location")
)
if act_os ~= "windows" then
dt.preferences.register("OpenInExplorer", "linked_image_files_dir", -- name