Skip to content

Commit

Permalink
Fixes getting more than first thumbnail, fix #38
Browse files Browse the repository at this point in the history
  • Loading branch information
0x90d committed Apr 3, 2019
1 parent 34a1594 commit 30993cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DuplicateFinderEngine/ScanEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ public async void StartSearch() {
positionList.Clear();
ElapsedTimer.Reset();
SearchSW.Reset();
float positionCounter = 0f;
for (var i = 0; i < Settings.ThumbnailCount; i++) {
positionList.Add(1.0F / (Settings.ThumbnailCount + 1));
positionCounter += 1.0F / (Settings.ThumbnailCount + 1);
positionList.Add(positionCounter);
}
_isScanning = true;
m_pauseTokeSource = new PauseTokenSource();
Expand Down

0 comments on commit 30993cb

Please sign in to comment.