diff --git a/MinecraftUSkinEditor/Forms/Editor/AudioEditor.cs b/MinecraftUSkinEditor/Forms/Editor/AudioEditor.cs index 2977dc49..773d29c2 100644 --- a/MinecraftUSkinEditor/Forms/Editor/AudioEditor.cs +++ b/MinecraftUSkinEditor/Forms/Editor/AudioEditor.cs @@ -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 { diff --git a/MinecraftUSkinEditor/MainForm.cs b/MinecraftUSkinEditor/MainForm.cs index 4cb4bd9e..fb67ed74 100644 --- a/MinecraftUSkinEditor/MainForm.cs +++ b/MinecraftUSkinEditor/MainForm.cs @@ -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);