Skip to content

Commit

Permalink
* Fixed every ListViewAdd resulted in ScreenRefresh
Browse files Browse the repository at this point in the history
* Fixed "up to parent" resulted in "working path of
  application" when afterwards clicking on c:
  • Loading branch information
Urmel committed Jan 20, 2023
1 parent 427cc36 commit 6ab27b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions Model/DirectoryElementCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ public void ParseFolderToDEs(string folder, Action<string> statusMethod)
if (_ExifTool == null)
throw new InvalidOperationException($"Cannot scan a folder (currently '{folder}') when the EXIF Tool was not set for the DirectoryElementCollection.");

if (folder.EndsWith(value: @"\"))
folder = folder.Substring(startIndex: 0, length: folder.Length - 1);

// ******************************
// Special Case is "MyComputer"...
// Only list drives... then exit
Expand Down
14 changes: 0 additions & 14 deletions View/ListView/FileListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,15 +418,6 @@ private void addListItem(DirectoryElement item)
// Set the icon to use out of the explorer icons
lvi.ImageIndex = shfi.iIcon;

// Show progress every 10th item
if (lvi.Index % 10 == 0)
{
Application.DoEvents();
// not adding the xmp here because the current code logic would pull a "unified" data point.

ScrollToDataPoint(itemText: item.ItemName);
}

// Set the values for the columns
List<string> subItemList = new();
if (item.Type == DirectoryElement.ElementType.File)
Expand Down Expand Up @@ -842,11 +833,6 @@ public void ReloadFromDEs(DirectoryElementCollection directoryElements)
{
addListItem(item: item);
if (item.Type == DirectoryElement.ElementType.File) _fileCount++;
if (_fileCount % 20 == 0)
{
Application.DoEvents();
ScrollToDataPoint(itemText: item.ItemName);
}
}
// Resume sorting...
Logger.Trace(message: "Enable ListViewItemSorter");
Expand Down

0 comments on commit 6ab27b1

Please sign in to comment.