mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-11 02:45:19 +03:00
Optimize deleting all images
This commit is contained in:
parent
44b66eb733
commit
50fdada34d
@ -601,10 +601,17 @@ namespace NAPS2.WinForms
|
||||
set
|
||||
{
|
||||
disableSelectedIndexChangedEvent = true;
|
||||
thumbnailList1.SelectedIndices.Clear();
|
||||
foreach (int i in value)
|
||||
if (imageList.Images.Count == 0)
|
||||
{
|
||||
thumbnailList1.SelectedIndices.Add(i);
|
||||
thumbnailList1.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
thumbnailList1.SelectedIndices.Clear();
|
||||
foreach (int i in value)
|
||||
{
|
||||
thumbnailList1.SelectedIndices.Add(i);
|
||||
}
|
||||
}
|
||||
disableSelectedIndexChangedEvent = false;
|
||||
thumbnailList1_SelectedIndexChanged(thumbnailList1, new EventArgs());
|
||||
|
Loading…
Reference in New Issue
Block a user