mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2025-01-25 06:52:53 +08:00
Fix for RPF Explorer search forward/back history
This commit is contained in:
parent
feee9ccb10
commit
06accfc17e
@ -284,16 +284,6 @@ namespace CodeWalker
|
|||||||
if (f == CurrentFolder) return; //already there!
|
if (f == CurrentFolder) return; //already there!
|
||||||
if (f.IsSearchResults)
|
if (f.IsSearchResults)
|
||||||
{
|
{
|
||||||
foreach (TreeNode tn in MainTreeView.Nodes)
|
|
||||||
{
|
|
||||||
var tnf = tn.Tag as MainTreeFolder;
|
|
||||||
if ((tnf != null) && (tnf.IsSearchResults))
|
|
||||||
{
|
|
||||||
MainTreeView.Nodes.Remove(tn); //remove existing search result node
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
AddMainTreeViewRoot(f); //add the current search result node
|
AddMainTreeViewRoot(f); //add the current search result node
|
||||||
|
|
||||||
TreeNode sr = FindTreeNode(f, null);
|
TreeNode sr = FindTreeNode(f, null);
|
||||||
@ -301,6 +291,17 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
MainTreeView.SelectedNode = sr; //navigate to the new search results node
|
MainTreeView.SelectedNode = sr; //navigate to the new search results node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (TreeNode tn in MainTreeView.Nodes)
|
||||||
|
{
|
||||||
|
var tnf = tn.Tag as MainTreeFolder;
|
||||||
|
if ((tn != sr) && (tnf != null) && (tnf.IsSearchResults))
|
||||||
|
{
|
||||||
|
MainTreeView.Nodes.Remove(tn); //remove existing search result node
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<MainTreeFolder> hierarchy = new List<MainTreeFolder>();
|
List<MainTreeFolder> hierarchy = new List<MainTreeFolder>();
|
||||||
|
Loading…
Reference in New Issue
Block a user