Rework implant state switch command to accept multiple positions

This commit is contained in:
DarkPhoenix
2019-04-25 15:20:20 +03:00
parent dc30b3ed1d
commit 8671b20790
5 changed files with 61 additions and 38 deletions

View File

@@ -241,7 +241,7 @@ class ImplantDisplay(d.Display):
if implant in self.original:
position = self.original.index(implant)
self.mainFrame.command.Submit(cmd.GuiToggleImplantStateCommand(
fitID=fitID, position=position))
fitID=fitID, mainPosition=position, positions=[position]))
def spawnMenu(self, event):
sel = self.GetFirstSelected()