Do not select cargo/drone tab when adding drones/cargo fails
This commit is contained in:
@@ -32,12 +32,10 @@ class AddToCargo(ContextMenuSingle):
|
||||
|
||||
def activate(self, fullContext, mainItem, i):
|
||||
fitID = self.mainFrame.getActiveFit()
|
||||
|
||||
typeID = int(mainItem.ID)
|
||||
|
||||
self.mainFrame.command.Submit(cmd.GuiAddCargoCommand(
|
||||
fitID=fitID, itemID=typeID, amount=1))
|
||||
self.mainFrame.additionsPane.select("Cargo")
|
||||
command = cmd.GuiAddCargoCommand(fitID=fitID, itemID=typeID, amount=1)
|
||||
if self.mainFrame.command.Submit(command):
|
||||
self.mainFrame.additionsPane.select("Cargo")
|
||||
|
||||
|
||||
AddToCargo.register()
|
||||
|
||||
Reference in New Issue
Block a user