Fix shift click not actually assigning skills

This commit is contained in:
2026-01-09 21:54:28 +01:00
parent 8800533c8a
commit aec20c1f5a
2 changed files with 9 additions and 6 deletions

View File

@@ -676,9 +676,9 @@ class FittingView(d.Display):
itemContext = fullContext[1] if len(fullContext) > 1 else None
skillsMenu = ChangeAffectingSkills()
if skillsMenu.display(self, srcContext, mainMod):
# Create the submenu directly
rootMenu = wx.Menu()
sub = skillsMenu.getSubMenu(self, srcContext, mainMod, rootMenu, 0, None)
# On Windows, menu items need to be bound to the menu shown with PopupMenu
# We pass None as rootMenu so items are bound to their parent submenus
sub = skillsMenu.getSubMenu(self, srcContext, mainMod, None, 0, None)
if sub:
self.PopupMenu(sub)
return