Disable apak file adding until file hashes can be calculated

This commit is contained in:
KillzXGaming 2020-01-30 19:04:18 -05:00
parent 018a55c63e
commit 9f3b99aaf4
2 changed files with 2 additions and 4 deletions

View file

@ -46,7 +46,7 @@ namespace FirstPlugin
public void ClearFiles() { files.Clear(); }
public bool CanAddFiles { get; set; } = true;
public bool CanAddFiles { get; set; } = false;
public bool CanRenameFiles { get; set; } = true;
public bool CanReplaceFiles { get; set; } = true;
public bool CanDeleteFiles { get; set; } = true;

View file

@ -304,7 +304,7 @@ namespace Toolbox.Library
{
new STToolStripItem("Save", SaveAction) { Enabled = ((IFileFormat)ArchiveFile).CanSave},
new STToolStripSeparator(),
new STToolStripItem("Repack", RepackAction){ Enabled = ArchiveFile.CanReplaceFiles},
new STToolStripItem("Repack", RepackAction){ Enabled = ArchiveFile.CanAddFiles },
new STToolStripItem("Extract All", ExtractAllAction),
new STToolStripSeparator(),
new STToolStripItem("Preview Archive", PreviewAction),
@ -573,8 +573,6 @@ namespace Toolbox.Library
}
else //Else create directories by filename paths
{
int I = 0;
foreach (var node in archiveFile.Files)
{
if (!node.CanLoadFile)