Small bug fix #24

Merged
H4CK3R-01 merged 1 commits from app-source-code into main 2022-05-06 06:35:51 +00:00
Showing only changes of commit e59b4113dc - Show all commits

View File

@ -1873,7 +1873,7 @@ namespace Aml.Editor.Plugin
IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root);
// We expect the aml to only have one root part
if (rootParts.First() != null)
if (rootParts.Count() != 0 && rootParts.First() != null)
{
PackagePart part = rootParts.First();
@ -4496,7 +4496,7 @@ namespace Aml.Editor.Plugin
}
else
{
this.advancedModeToolStripMenuItem.Text = "Expert mode";
this.advancedModeToolStripMenuItem.Text = "Advanced mode";
}
// Show/hide elements