1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Some file explorer adjustments

This commit is contained in:
KillzXGaming 2019-08-26 16:52:32 -04:00
parent 4c49056b81
commit 56d7287b54

View File

@ -29,8 +29,6 @@ namespace Toolbox.Library
public override void OnClick(TreeView treeview)
{
return;
ArchiveFilePanel editor = (ArchiveFilePanel)LibraryGUI.GetActiveContent(typeof(ArchiveFilePanel));
if (editor == null)
{
@ -106,6 +104,16 @@ namespace Toolbox.Library
private bool CheckSupport()
{
string ext = Utils.GetExtension(filePath);
foreach (var format in FileManager.GetFileFormats())
{
for (int i = 0; i < format.Extension.Length; i++)
if (format.Extension[i].Contains(ext))
return true;
}
return false;
/* using (var fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read))
{
if (fileStream.Length < 10)
@ -119,9 +127,9 @@ namespace Toolbox.Library
return true;
}
}*/
return false;
return false;
}
}
}