Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
Add some code style changes for better code readability
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <me@teran.ru>
  • Loading branch information
teran committed Oct 17, 2017
1 parent a4235b3 commit 796e3a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deduplicator.lrdevplugin/FindDuplicates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ end
function FindDuplicates()
local command
local quotedCommand

if WIN_ENV == true then
command = '"' .. LrPathUtils.child( LrPathUtils.child( _PLUGIN.path, "win" ), binName .. '.exe' ) .. '" -json-output -find-duplicates ' .. imgsumDatabasePath
quotedCommand = '"' .. command .. '"'
Expand Down Expand Up @@ -92,19 +93,24 @@ end
function Deduplicator.FindDuplicates()
local catPhotos = catalog:getMultipleSelectedOrAllPhotos()
local titles = {}
local indexerProgress = LrProgressScope({
title="Indexing photos...", functionContext = context})

local indexerProgress = LrProgressScope({title="Indexing photos", functionContext = context})
indexerProgress:setCancelable(true)

for i, photo in ipairs(catPhotos) do
if indexerProgress:isCanceled() then
break;
end

local fileName = photo:getFormattedMetadata("fileName")

indexerProgress:setPortionComplete(i, #catPhotos)
indexerProgress:setCaption("Processing " .. fileName)

IndexPhoto(photo)
end

indexerProgress:done()

FindDuplicates()
Expand Down

0 comments on commit 796e3a8

Please sign in to comment.