Add filter to replace function

This commit is contained in:
miku-666
2022-11-16 16:40:30 +01:00
parent 3fa7f29803
commit b06434dbc2

View File

@@ -593,6 +593,7 @@ namespace PckStudio
if (treeViewMain.SelectedNode.Tag is PCKFile.FileData file)
{
using var ofd = new OpenFileDialog();
ofd.Filter = Path.GetExtension(file.filepath);
if (ofd.ShowDialog() == DialogResult.OK)
{
file.SetData(File.ReadAllBytes(ofd.FileName));