mirror of
https://github.com/jaquadro/NBTExplorer.git
synced 2025-01-10 01:46:24 +00:00
Fixed bug where collapsed subnodes cannot be expanded again
This commit is contained in:
parent
28913deb70
commit
ef6102b0f4
1 changed files with 5 additions and 2 deletions
|
@ -197,13 +197,16 @@ namespace NBTExplorer
|
||||||
|
|
||||||
OpenPaths(new string[] { path });
|
OpenPaths(new string[] { path });
|
||||||
}
|
}
|
||||||
catch (Exception) {
|
catch (Exception e) {
|
||||||
MessageBox.Show("Could not open default Minecraft save directory");
|
MessageBox.Show("Could not open default Minecraft save directory");
|
||||||
|
Console.WriteLine(e.Message);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
OpenPaths(new string[] { Directory.GetCurrentDirectory() });
|
OpenPaths(new string[] { Directory.GetCurrentDirectory() });
|
||||||
}
|
}
|
||||||
catch (Exception) {
|
catch (Exception) {
|
||||||
MessageBox.Show("Could not open current directory, this tool is probably not compatible with your platform.");
|
MessageBox.Show("Could not open current directory, this tool is probably not compatible with your platform.");
|
||||||
|
Console.WriteLine(e.Message);
|
||||||
Application.Exit();
|
Application.Exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -219,7 +222,7 @@ namespace NBTExplorer
|
||||||
frontNode.Tag = node;
|
frontNode.Tag = node;
|
||||||
frontNode.ContextMenuStrip = BuildNodeContextMenu(node);
|
frontNode.ContextMenuStrip = BuildNodeContextMenu(node);
|
||||||
|
|
||||||
if (node.HasUnexpandedChildren)
|
if (node.HasUnexpandedChildren || node.Nodes.Count > 0)
|
||||||
frontNode.Nodes.Add(new TreeNode());
|
frontNode.Nodes.Add(new TreeNode());
|
||||||
|
|
||||||
return frontNode;
|
return frontNode;
|
||||||
|
|
Loading…
Reference in a new issue