Load command bar if we are supposed to display both

This commit is contained in:
Michael Becker 2019-09-18 19:10:02 -04:00
parent cf735e55e9
commit 58ba665822

View File

@ -165,7 +165,8 @@ namespace UniversalEditor.UserInterface
ribbonTabHome.Title = "Home";
this.Ribbon.Tabs.Add (ribbonTabHome);
}
} else {
}
if (this.CommandDisplayMode == CommandDisplayMode.CommandBar || this.CommandDisplayMode == CommandDisplayMode.Both) {
foreach (CommandBar cb in Engine.CurrentEngine.CommandBars) {
this.Controls.Add (LoadCommandBar(cb));
}