diff -r 93b9f502cb88 -r f632bc0589ab ui/winui/commandbar.cpp --- a/ui/winui/commandbar.cpp Wed Oct 11 19:11:38 2023 +0200 +++ b/ui/winui/commandbar.cpp Wed Oct 11 22:59:42 2023 +0200 @@ -98,7 +98,7 @@ for (UiMenuItemI* mi = i->menu.items_begin; mi; mi = mi->next) { // convert UiMenuItemI to UiToolbarItemI switch (mi->type) { - case UI_MENU_SUBMENU: { + case UI_MENU: { UiMenu* mitem = (UiMenu*)mi; UiToolbarMenuItem tbitem; memset(&tbitem, 0, sizeof(UiToolbarMenuItem));