This commit is contained in:
@@ -1581,7 +1581,11 @@ namespace Volian.Controls.Library
|
||||
// get the config item for the steps section. there is an 'editable'
|
||||
// flag used in metasections to define whether the steps should print.
|
||||
// this flag can be toggle on the section's properties dialog.
|
||||
bool EditSteps = !(MyItemInfo.MyConfig is SectionConfig && (MyItemInfo.MyConfig as SectionConfig).SubSection_Edit == "N");
|
||||
// Only check the flag if the section has subsections because the
|
||||
// default for the flag is not editable, and this would make non-metasections
|
||||
// not editable.
|
||||
bool hasMetaSubs = MyItemInfo.IsSection && MyItemInfo.Sections != null && MyItemInfo.Sections.Count>0;
|
||||
bool EditSteps = !hasMetaSubs || (MyItemInfo.MyConfig is SectionConfig && (MyItemInfo.MyConfig as SectionConfig).SubSection_Edit == "Y");
|
||||
if (EditSteps) AddChildAfter(MyItemInfo.Steps, expand);
|
||||
|
||||
if (MyItemInfo.RNOs != null && MyItemInfo.RNOLevel >= MyItemInfo.ColumnMode)
|
||||
|
Reference in New Issue
Block a user