Skip to content

Commit 2b28f02

Browse files
authored
Merge pull request darktable-org#320 from wpferguson/fix_6_2_2
fix API 6.2.2 compatibility
2 parents 69b846a + dc4938c commit 2b28f02

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

contrib/select_untagged.lua

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ local function select_untagged_images()
6363
dt.gui.selection(selection)
6464
end
6565

66-
dt.gui.libs.select.register_selection(
67-
CURR_API_STRING >= "6.2.2" and "select_untagged", _("select untagged") or _("select untagged") ,
68-
select_untagged_images,
69-
_("select all images containing no tags or only tags added by darktable"))
66+
if CURR_API_STRING >= "6.2.2" then
67+
dt.gui.libs.select.register_selection(
68+
"select_untagged", _("select untagged"),
69+
select_untagged_images,
70+
_("select all images containing no tags or only tags added by darktable"))
71+
else
72+
dt.gui.libs.select.register_selection(
73+
_("select untagged"),
74+
select_untagged_images,
75+
_("select all images containing no tags or only tags added by darktable"))
76+
end

0 commit comments

Comments
 (0)