Skip to content

Commit

Permalink
Merge branch 'pr__1283' into test-pr-1283
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrushforth committed Mar 5, 2024
2 parents ce027c4 + c2fb8b1 commit 6264342
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ private void insertMenu(final Menu parent, final MenuBase mb, int pos) {
listenerItems.put(menuItemListener, filteredItems);

for (MenuItemBase item : items) {
if (item instanceof MenuBase) {
if (item instanceof MenuBase baseItem) {
// submenu
addMenu(glassMenu, (MenuBase)item);
addMenu(glassMenu, baseItem);
} else {
// menu item
addMenuItem(glassMenu, item);
Expand Down

0 comments on commit 6264342

Please sign in to comment.