mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-26 15:47:08 +00:00
Add filter to replace function
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user