mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 15:14:55 +00:00
Some archive fixes
This commit is contained in:
parent
df9641faab
commit
e15aa39eb9
4 changed files with 4 additions and 4 deletions
Binary file not shown.
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue