Fix addition of drones via alt-dclick
This commit is contained in:
@@ -245,7 +245,7 @@ class DroneView(Display):
|
||||
event.Skip()
|
||||
return
|
||||
|
||||
amount = droneStackLimit(fit, event.itemID) if event.GetModifiers() == wx.MOD_ALT else 1
|
||||
amount = droneStackLimit(fit, event.itemID) if wx.GetMouseState().GetModifiers() == wx.MOD_ALT else 1
|
||||
if self.mainFrame.command.Submit(cmd.GuiAddLocalDroneCommand(fitID=fitID, itemID=event.itemID, amount=amount)):
|
||||
self.mainFrame.additionsPane.select('Drones')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user