mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-05 02:07:06 +00:00
Update MainForm.viewFileInfoToolStripMenuItem to only be visible when having a PckFile.FileData selected
This commit is contained in:
@@ -390,8 +390,10 @@ namespace PckStudio
|
||||
buttonEdit.Visible = false;
|
||||
pictureBoxImagePreview.Image = Resources.NoImageFound;
|
||||
var node = e.Node;
|
||||
viewFileInfoToolStripMenuItem.Visible = false;
|
||||
if (node is TreeNode t && t.Tag is PCKFile.FileData file)
|
||||
{
|
||||
viewFileInfoToolStripMenuItem.Visible = true;
|
||||
if (file.properties.HasProperty("BOX"))
|
||||
{
|
||||
buttonEdit.Text = "EDIT BOXES";
|
||||
|
||||
Reference in New Issue
Block a user