mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-05 11:57:11 +00:00
Fixed AddCategory feature not making nodes
This commit is contained in:
@@ -197,6 +197,12 @@ namespace PckStudio.Forms.Editor
|
||||
using addCategory add = new addCategory(avalible);
|
||||
if (add.ShowDialog() == DialogResult.OK)
|
||||
audioFile.AddCategory(GetCategoryId(add.Category));
|
||||
else return;
|
||||
|
||||
var category = audioFile.GetCategory(GetCategoryId(add.Category));
|
||||
TreeNode treeNode = new TreeNode(GetCategoryFromId(category.audioType), (int)category.audioType, (int)category.audioType);
|
||||
treeNode.Tag = category;
|
||||
treeView1.Nodes.Add(treeNode);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -598,7 +598,7 @@ namespace PckStudio
|
||||
break;
|
||||
|
||||
case 9 when file.filepath == "colours.col":
|
||||
if (file.FileSize == 0)
|
||||
if (file.size == 0)
|
||||
{
|
||||
MessageBox.Show("No Color data found.", "Error", MessageBoxButtons.OK,
|
||||
MessageBoxIcon.Error);
|
||||
|
||||
Reference in New Issue
Block a user