From dc4938c377d10bed3a67f3771be7d7b73da8744f Mon Sep 17 00:00:00 2001 From: wpferguson Date: Tue, 9 Feb 2021 23:36:54 -0500 Subject: [PATCH] inline if didn't work. Replaced with full if/else --- contrib/select_untagged.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/contrib/select_untagged.lua b/contrib/select_untagged.lua index 2582b55..238c1ac 100644 --- a/contrib/select_untagged.lua +++ b/contrib/select_untagged.lua @@ -63,7 +63,14 @@ local function select_untagged_images() dt.gui.selection(selection) end -dt.gui.libs.select.register_selection( - CURR_API_STRING >= "6.2.2" and "select_untagged", _("select untagged") or _("select untagged") , - select_untagged_images, - _("select all images containing no tags or only tags added by darktable")) +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 \ No newline at end of file