[API 6.2.3] Added changes for API 6.2.3 compatibility

This commit is contained in:
wpferguson
2021-02-17 22:24:02 -05:00
parent 448da35327
commit 4053ceb9e5
5 changed files with 127 additions and 44 deletions

View File

@@ -64,12 +64,21 @@ local function clear_GPS(images)
end
end
if CURR_API_STRING < "6.2.3" then
dt.gui.libs.image.register_action(
_("clear GPS data"),
function(event, images) clear_GPS(images) end,
_("Clear GPS data from selected images")
)
else
dt.gui.libs.image.register_action(
_"clear_GPS", ("clear GPS data"),
function(event, images) clear_GPS(images) end,
_("Clear GPS data from selected images")
)
end
dt.gui.libs.image.register_action(
_("clear GPS data"),
function(event, images) clear_GPS(images) end,
_("Clear GPS data from selected images")
)
dt.register_event(
"clearGPS", "shortcut",