mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-27 05:44:43 +00:00
MainForm - Fix clone function working on folders
This commit is contained in:
@@ -1170,7 +1170,8 @@ namespace PckStudio
|
||||
private void cloneFileToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
TreeNode node = treeViewMain.SelectedNode;
|
||||
if (node == null) return;
|
||||
if (node == null || !node.IsTagOfType<PckFileData>())
|
||||
return;
|
||||
string path = node.FullPath;
|
||||
|
||||
using TextPrompt diag = new TextPrompt(node.Tag is null ? Path.GetFileName(node.FullPath) : node.FullPath);
|
||||
|
||||
Reference in New Issue
Block a user