Allow to change projected items' metas regardless of ability of target ship to fit them
This commit is contained in:
@@ -43,6 +43,7 @@ class ChangeItemToVariation(ContextMenuCombined):
|
|||||||
|
|
||||||
self.mainItem = mainItem
|
self.mainItem = mainItem
|
||||||
self.selection = selection
|
self.selection = selection
|
||||||
|
self.srcContext = srcContext
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def getText(self, callingWindow, itmContext, mainItem, selection):
|
def getText(self, callingWindow, itmContext, mainItem, selection):
|
||||||
@@ -126,7 +127,7 @@ class ChangeItemToVariation(ContextMenuCombined):
|
|||||||
|
|
||||||
self.moduleLookup[id] = item, context
|
self.moduleLookup[id] = item, context
|
||||||
m.Append(mitem)
|
m.Append(mitem)
|
||||||
mitem.Enable(fit.canFit(item))
|
mitem.Enable(self.srcContext in ('projectedModule', 'projectedDrone', 'projectedFighter') or fit.canFit(item))
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user