Enhanced: null checks and cache refreshes for new folders
This commit is contained in:
parent
d4c0f2098d
commit
cf41e4b8a2
@ -1309,7 +1309,7 @@ namespace Volian.Controls.Library
|
|||||||
bool retB = true;
|
bool retB = true;
|
||||||
E_AccStep? actable = 0;
|
E_AccStep? actable = 0;
|
||||||
StepData sd = ii.FormatStepData;
|
StepData sd = ii.FormatStepData;
|
||||||
actable = sd.StepEditData.AcTable;
|
if (sd != null) actable = sd.StepEditData.AcTable;
|
||||||
if (actable == null) actable = 0;
|
if (actable == null) actable = 0;
|
||||||
|
|
||||||
return (ba == 0) ? !ii.IsRNOPart && (actable & E_AccStep.AddingPrev) > 0 :
|
return (ba == 0) ? !ii.IsRNOPart && (actable & E_AccStep.AddingPrev) > 0 :
|
||||||
@ -2238,6 +2238,8 @@ namespace Volian.Controls.Library
|
|||||||
docversion.Save();
|
docversion.Save();
|
||||||
tn = new VETreeNode(_LastDocVersionInfo);
|
tn = new VETreeNode(_LastDocVersionInfo);
|
||||||
SelectedNode.Nodes.Add(tn); // add tree node to end of list.
|
SelectedNode.Nodes.Add(tn); // add tree node to end of list.
|
||||||
|
parentfolder.Reset_ChildFolders();
|
||||||
|
parentfolder.Reset_FolderDocVersions();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
dvid = docversion.VersionID;
|
dvid = docversion.VersionID;
|
||||||
@ -3630,7 +3632,7 @@ namespace Volian.Controls.Library
|
|||||||
public void AdjustTree(ItemInfo selectedItem)
|
public void AdjustTree(ItemInfo selectedItem)
|
||||||
{
|
{
|
||||||
// start at the top parent and walk down the nodes to find child
|
// start at the top parent and walk down the nodes to find child
|
||||||
Console.WriteLine("VlnTreeview:AdjustTree");
|
if (selectedItem == null) return;
|
||||||
VETreeNode node = FindNodeAndExpand(selectedItem);
|
VETreeNode node = FindNodeAndExpand(selectedItem);
|
||||||
if (node != null)
|
if (node != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user