Fix Drag N Drop feature to now load the editor tab

This commit is contained in:
miku-666
2022-07-29 23:21:15 +02:00
parent e7f124b059
commit c6298406f5

View File

@@ -101,8 +101,7 @@ namespace PckStudio
private void LoadEditorTab()
{
fileEntryCountLabel.Text = "Files:" + currentPCK.Files.Count;
treeViewMain.Enabled = true;
treeMeta.Enabled = true;
treeViewMain.Enabled = treeMeta.Enabled = true;
closeToolStripMenuItem.Visible = true;
saveToolStripMenuItem.Enabled = true;
saveToolStripMenuItem1.Enabled = true;
@@ -2838,7 +2837,7 @@ namespace PckStudio
if (FileList.Length > 1)
MessageBox.Show("Only one pck file at a time is currently supported");
currentPCK = openPck(FileList[0]);
BuildMainTreeView();
LoadEditorTab();
}
private void OpenPck_DragLeave(object sender, EventArgs e)
@@ -2875,5 +2874,5 @@ namespace PckStudio
Console.WriteLine("Setting {file.type} to {type}");
file.type = type;
}
}
}
}