Obtain fileformat from archive roots for additional file menus.
This commit is contained in:
parent
e122021cdc
commit
d26f2373ac
@ -469,6 +469,13 @@ namespace Toolbox.Library.Forms
|
|||||||
return (IFileFormat)node.Tag;
|
return (IFileFormat)node.Tag;
|
||||||
else if (node is IFileFormat)
|
else if (node is IFileFormat)
|
||||||
return (IFileFormat)node;
|
return (IFileFormat)node;
|
||||||
|
else if (node is ArchiveRootNodeWrapper)
|
||||||
|
{
|
||||||
|
if (((ArchiveRootNodeWrapper)node).ArchiveFile is IFileFormat)
|
||||||
|
return ((ArchiveRootNodeWrapper)node).ArchiveFile as IFileFormat;
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user