[API 6.2.3] Added changes for API 6.2.3 compatibility
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user