Rework setting mode and fix command which changes fit name

It was just broken before
This commit is contained in:
DarkPhoenix
2019-04-14 03:18:25 +03:00
parent c721869dfa
commit 9a6255cb29
10 changed files with 72 additions and 31 deletions

View File

@@ -61,7 +61,7 @@ class TacticalMode(ContextMenu):
return
fitID = self.mainFrame.getActiveFit()
self.mainFrame.command.Submit(cmd.GuiSetModeCommand(fitID, self.modeIds[event.Id]))
self.mainFrame.command.Submit(cmd.GuiSetModeCommand(fitID, self.modeIds[event.Id].item.ID))
TacticalMode.register()