Allow adding items to cargo via double-click

This commit is contained in:
DarkPhoenix
2021-02-19 20:39:10 +03:00
parent 961258618a
commit 6b30b2859e
2 changed files with 5 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ class CargoView(d.Display):
def addItem(self, event):
item = Market.getInstance().getItem(event.itemID, eager='group')
if item is None or not item.isCharge:
if item is None or not (item.isCharge or item.isCommodity):
event.Skip()
return