Revert changes to accomadate API changes greater than 6.1
This commit is contained in:
@@ -175,63 +175,31 @@ local function CollectOnAll_AND()
|
||||
end
|
||||
|
||||
-- GUI --
|
||||
if CURR_API_STRING < "6.2.3" then
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: previous"),
|
||||
function() PreviousCollection() end,
|
||||
_("Sets the Collect parameters to be the previously active parameters")
|
||||
)
|
||||
else
|
||||
dt.gui.libs.image.register_action(
|
||||
"CollectHelper_prev", _("collect: previous"),
|
||||
function() PreviousCollection() end,
|
||||
_("Sets the Collect parameters to be the previously active parameters")
|
||||
)
|
||||
end
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: previous"),
|
||||
function() PreviousCollection() end,
|
||||
_("Sets the Collect parameters to be the previously active parameters")
|
||||
)
|
||||
if dt.preferences.read('module_CollectHelper','folder','bool') then
|
||||
if CURR_API_STRING < "6.2.3" then
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: folder"),
|
||||
function() CollectOnFolder(_ , false) end,
|
||||
_("Sets the Collect parameters to be the selected images's folder")
|
||||
)
|
||||
else
|
||||
dt.gui.libs.image.register_action(
|
||||
"CollectHelper_folder", _("collect: folder"),
|
||||
function() CollectOnFolder(_ , false) end,
|
||||
_("Sets the Collect parameters to be the selected images's folder")
|
||||
)
|
||||
end
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: folder"),
|
||||
function() CollectOnFolder(_ , false) end,
|
||||
_("Sets the Collect parameters to be the selected images's folder")
|
||||
)
|
||||
end
|
||||
if dt.preferences.read('module_CollectHelper','colors','bool') then
|
||||
if CURR_API_STRING < "6.2.3" then
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: color label(s)"),
|
||||
function() CollectOnColors(_ , false) end,
|
||||
_("Sets the Collect parameters to be the selected images's color label(s)")
|
||||
)
|
||||
else
|
||||
dt.gui.libs.image.register_action(
|
||||
"CollectHelper_labels", _("collect: color label(s)"),
|
||||
function() CollectOnColors(_ , false) end,
|
||||
_("Sets the Collect parameters to be the selected images's color label(s)")
|
||||
)
|
||||
end
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: color label(s)"),
|
||||
function() CollectOnColors(_ , false) end,
|
||||
_("Sets the Collect parameters to be the selected images's color label(s)")
|
||||
)
|
||||
end
|
||||
if dt.preferences.read('module_CollectHelper','all_and','bool') then
|
||||
if CURR_API_STRING < "6.2.3" then
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: all (AND)"),
|
||||
function() CollectOnAll_AND() end,
|
||||
_("Sets the Collect parameters based on all activated CollectHelper options")
|
||||
)
|
||||
else
|
||||
dt.gui.libs.image.register_action(
|
||||
"CollectHelper_and", _("collect: all (AND)"),
|
||||
function() CollectOnAll_AND() end,
|
||||
_("Sets the Collect parameters based on all activated CollectHelper options")
|
||||
)
|
||||
end
|
||||
dt.gui.libs.image.register_action(
|
||||
_("collect: all (AND)"),
|
||||
function() CollectOnAll_AND() end,
|
||||
_("Sets the Collect parameters based on all activated CollectHelper options")
|
||||
)
|
||||
end
|
||||
|
||||
-- PREFERENCES --
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -64,21 +64,11 @@ 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",
|
||||
|
||||
@@ -64,14 +64,7 @@ local function select_untagged_images(event, images)
|
||||
return selection
|
||||
end
|
||||
|
||||
if CURR_API_STRING >= "6.2.2" then
|
||||
dt.gui.libs.select.register_selection(
|
||||
"select_untagged", _("select untagged"),
|
||||
select_untagged_images,
|
||||
_("select all images containing no tags or only tags added by darktable"))
|
||||
else
|
||||
dt.gui.libs.select.register_selection(
|
||||
_("select untagged"),
|
||||
select_untagged_images,
|
||||
_("select all images containing no tags or only tags added by darktable"))
|
||||
end
|
||||
dt.gui.libs.select.register_selection(
|
||||
_("select untagged"),
|
||||
select_untagged_images,
|
||||
_("select all images containing no tags or only tags added by darktable"))
|
||||
|
||||
Reference in New Issue
Block a user