Add using statement to addEntryToolStrip

This commit is contained in:
miku-666
2022-08-03 02:58:33 +02:00
parent c83bd7f655
commit db800c76d3

View File

@@ -735,7 +735,7 @@ namespace PckStudio
!(treeViewMain.SelectedNode.Tag is PCKFile.FileData))
return;
PCKFile.FileData file = (PCKFile.FileData)treeViewMain.SelectedNode.Tag;
addMeta add = new addMeta();
using addMeta add = new addMeta();
if (add.ShowDialog() == DialogResult.OK)
{
var property = new ValueTuple<string, string>(add.PropertyName, add.PropertyValue);
@@ -743,7 +743,6 @@ namespace PckStudio
ReloadMetaTreeView();
saved = false;
}
add.Dispose();
}
private void moveUpToolStripMenuItem_Click(object sender, EventArgs e)