Issue #2073: Final tweaks on implementation
This commit is contained in:
@@ -298,12 +298,10 @@ class ImplantDisplay(d.Display):
|
||||
fit = Fit.getInstance().getFit(fitID)
|
||||
sourceContext1 = "implantItem" if fit.implantSource == ImplantLocation.FIT else "implantItemChar"
|
||||
sourceContext2 = "implantItemMisc" if fit.implantSource == ImplantLocation.FIT else "implantItemMiscChar"
|
||||
sourceContext3 = "implantSetAdd"
|
||||
itemContext = None if mainImplant is None else Market.getInstance().getCategoryByItem(mainImplant.item).name
|
||||
menu = ContextMenu.getMenu(self, mainImplant, selection,
|
||||
(sourceContext1, itemContext),
|
||||
(sourceContext2, itemContext),
|
||||
(sourceContext3, itemContext)
|
||||
(sourceContext2, itemContext)
|
||||
)
|
||||
if menu:
|
||||
self.PopupMenu(menu)
|
||||
|
||||
@@ -12,7 +12,7 @@ class ImplantSetAdd(ContextMenuUnconditional):
|
||||
if not implantList or len(implantList) == 0:
|
||||
return False
|
||||
|
||||
return srcContext in ("implantSetAdd", "implantEditor")
|
||||
return srcContext in ("implantItemMisc", "implantItemMiscChar", "implantEditor")
|
||||
|
||||
def getText(self, callingWindow, itmContext):
|
||||
return "Add As New Implant Set"
|
||||
|
||||
Reference in New Issue
Block a user