made code clearer

This commit is contained in:
Charlie Kindel
2022-10-21 11:03:28 -06:00
committed by BDisp
parent 57cef55cdc
commit 09a64909e3

View File

@@ -110,13 +110,13 @@ namespace Terminal.Gui {
} else if (ForceMinimumPosToZero && position.Y < 0) {
position.Y = 0;
}
menuBar = new MenuBar (new [] { MenuItems }) {
X = position.X,
Y = position.Y,
Width = 0,
Height = 0,
UseSubMenusSingleFrame = UseSubMenusSingleFrame // BUGBUG: This line of code does nothing
UseSubMenusSingleFrame = this.UseSubMenusSingleFrame
};
menuBar.isContextMenuLoading = true;