Skip to content

Commit

Permalink
Clear preload #172
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Oct 25, 2024
1 parent 0fa33ec commit 65d76dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PicView.Avalonia/Navigation/ImageIterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,10 @@ public int GetIteration(int index, NavigateTo navigateTo, bool skip1 = false, bo

if (skip100)
{
PreLoader.Clear();
if (ImagePaths.Count > PreLoader.MaxCount)
{
PreLoader.Clear();
}
}

// Determine skipAmount based on input flags
Expand Down

0 comments on commit 65d76dd

Please sign in to comment.