mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-09 10:43:30 +00:00
TreeViewExtensions - Fix ArgumentOutOfRangeException when adding or replacing files(#38)
This commit is contained in:
@@ -14,6 +14,12 @@ namespace PckStudio.Extensions
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(path))
|
||||
return Array.Empty<TreeNode>();
|
||||
|
||||
if (!path.Contains(treeView.PathSeparator))
|
||||
{
|
||||
return treeView.Nodes.Find(path, false);
|
||||
}
|
||||
|
||||
string segment = path.Substring(0, path.IndexOf(treeView.PathSeparator));
|
||||
if (treeView.Nodes.ContainsKey(segment))
|
||||
{
|
||||
|
||||
@@ -32,6 +32,6 @@ using System.Security.Permissions;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("7.0.0.0")]
|
||||
[assembly: AssemblyVersion("7.0.0.1")]
|
||||
[assembly: AssemblyFileVersion("7.0.0.0")]
|
||||
[assembly: NeutralResourcesLanguage("")]
|
||||
|
||||
Reference in New Issue
Block a user