mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-27 01:12:54 +08:00
Fix for RPF Explorer crash when previously opened folder was deleted
This commit is contained in:
parent
66b1d619fe
commit
2b8ac5bb65
@ -686,10 +686,25 @@ namespace CodeWalker
|
|||||||
RefreshMainTreeViewRoot(root);
|
RefreshMainTreeViewRoot(root);
|
||||||
|
|
||||||
|
|
||||||
|
var remFolders = new List<MainTreeFolder>();
|
||||||
|
|
||||||
foreach (var extraroot in ExtraRootFolders)
|
foreach (var extraroot in ExtraRootFolders)
|
||||||
{
|
{
|
||||||
extraroot.Clear();
|
extraroot.Clear();
|
||||||
RefreshMainTreeViewRoot(extraroot);
|
|
||||||
|
if (Directory.Exists(extraroot.FullPath))
|
||||||
|
{
|
||||||
|
RefreshMainTreeViewRoot(extraroot);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
remFolders.Add(extraroot);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var remFolder in remFolders)
|
||||||
|
{
|
||||||
|
ExtraRootFolders.Remove(remFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user