Change implant remove command to support batch removal

This commit is contained in:
DarkPhoenix
2019-04-25 14:56:09 +03:00
parent 07a9f77287
commit dc30b3ed1d
4 changed files with 16 additions and 10 deletions

View File

@@ -220,7 +220,7 @@ class ImplantDisplay(d.Display):
fit = sFit.getFit(fitID)
if fit.implantLocation == ImplantLocation.FIT and implant in self.original:
position = self.original.index(implant)
self.mainFrame.command.Submit(cmd.GuiRemoveImplantCommand(fitID=fitID, position=position))
self.mainFrame.command.Submit(cmd.GuiRemoveImplantsCommand(fitID=fitID, positions=[position]))
def click(self, event):
event.Skip()