File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -36,31 +36,32 @@ local function stop_job(job)
36
36
job .valid = false
37
37
end
38
38
39
- local function select_untagged_images ()
39
+ local function select_untagged_images (event , images )
40
40
job = dt .gui .create_job (_ (" select untagged images" ), true , stop_job )
41
41
42
42
local selection = {}
43
43
44
- for key ,image in ipairs (dt . collection ) do
44
+ for key ,image in ipairs (images ) do
45
45
if (job .valid ) then
46
- job .percent = (key - 1 )/# dt . collection
46
+ job .percent = (key - 1 )/# images
47
47
local tags = dt .tags .get_tags (image )
48
48
local hasTags = false
49
49
for _ ,tag in ipairs (tags ) do
50
- if not string.match (tag .name ," darktable|" ) then
50
+ if not string.match (tag .name , " darktable|" ) then
51
51
hasTags = true
52
52
end
53
53
end
54
54
if hasTags == false then
55
- table.insert (selection ,image )
55
+ table.insert (selection , image )
56
56
end
57
57
else
58
58
break
59
59
end
60
60
end
61
61
62
62
job .valid = false
63
- dt .gui .selection (selection )
63
+ -- return table of images to set the selection to
64
+ return selection
64
65
end
65
66
66
67
if CURR_API_STRING >= " 6.2.2" then
You can’t perform that action at this time.
0 commit comments