Change cargo removal command to be able to accept multiple typeIDs

This commit is contained in:
DarkPhoenix
2019-04-24 22:09:45 +03:00
parent dde1e7990d
commit cfb351a751
4 changed files with 20 additions and 11 deletions

View File

@@ -109,7 +109,7 @@ class CargoView(d.Display):
cargo = self.cargo[self.GetItemData(row)]
except IndexError:
return
self.mainFrame.command.Submit(cmd.GuiRemoveCargoCommand(fitID=fitID, itemID=cargo.itemID))
self.mainFrame.command.Submit(cmd.GuiRemoveCargosCommand(fitID=fitID, itemIDs=[cargo.itemID]))
event.Skip()
def swapModule(self, x, y, modIdx):
@@ -174,7 +174,7 @@ class CargoView(d.Display):
cargo = self.cargo[self.GetItemData(row)]
except IndexError:
return
self.mainFrame.command.Submit(cmd.GuiRemoveCargoCommand(fitID=fitID, itemID=cargo.itemID))
self.mainFrame.command.Submit(cmd.GuiRemoveCargosCommand(fitID=fitID, itemIDs=[cargo.itemID]))
def spawnMenu(self, event):
sel = self.GetFirstSelected()