Reset the override changebar when the grid (table) changes
This commit is contained in:
parent
83c2ce7e66
commit
06e71b1522
@ -685,8 +685,16 @@ namespace Volian.Controls.Library
|
|||||||
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
||||||
if (itm.MyConfig == null) itm.MyContent.Config = sc.ToString();
|
if (itm.MyConfig == null) itm.MyContent.Config = sc.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
itm.Save();
|
itm.Save();
|
||||||
|
|
||||||
|
StepConfig myItmCfg =MyItemInfo.MyConfig as StepConfig;
|
||||||
|
// We saved changes made to some step text. Reset the change bar override.
|
||||||
|
// IF there is a step config remove the change bar override by setting the CBOverride value to null
|
||||||
|
// This fixes a problem reported by Farly where if the change bar or overridden to be off, the next
|
||||||
|
// time a change was made, the change bar remained turned off.
|
||||||
|
if (myItmCfg != null)
|
||||||
|
myItmCfg.Step_CBOverride = null; // clear the change bar override
|
||||||
|
|
||||||
MyItemInfo.MyContent.MyGrid.ResetContent(itm.MyContent.MyGrid);
|
MyItemInfo.MyContent.MyGrid.ResetContent(itm.MyContent.MyGrid);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user