Some archive fixes

This commit is contained in:
KillzXGaming 2019-07-26 16:44:22 -04:00
parent df9641faab
commit e15aa39eb9
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View file

@ -213,7 +213,7 @@ namespace Toolbox.Library
if (parentNode is ArchiveRootNodeWrapper)
((ArchiveRootNodeWrapper)parentNode).AddFileNode(File);
if (parentNode is ArchiveFolderNodeWrapper)
((ArchiveRootNodeWrapper)parentNode).AddFileNode(File);
((ArchiveFolderNodeWrapper)parentNode).RootNode.AddFileNode(File);
parentNode.Nodes.Add(File);
}
@ -238,12 +238,12 @@ namespace Toolbox.Library
foreach (var node in TreeViewExtensions.Collect(folderNode.Nodes))
{
var parentNode = node.Parent;
parentNode.Nodes.Remove(node);
if (node is ArchiveFileWrapper)
archiveFile.DeleteFile(((ArchiveFileWrapper)node).ArchiveFileInfo);
}
var parentNode = folderNode.Parent;
parentNode.Nodes.Remove(folderNode);
}
}
}