Make sure to pass just 1 unique context
This commit is contained in:
@@ -352,11 +352,15 @@ class FittingView(d.Display):
|
|||||||
if not mod.isEmpty:
|
if not mod.isEmpty:
|
||||||
srcContext = "fittingModule"
|
srcContext = "fittingModule"
|
||||||
itemContext = sMkt.getCategoryByItem(mod.item).name
|
itemContext = sMkt.getCategoryByItem(mod.item).name
|
||||||
contexts.append((srcContext, itemContext))
|
fullContext = (srcContext, itemContext)
|
||||||
|
if not fullContext in contexts:
|
||||||
|
contexts.append(fullContext)
|
||||||
if mod.charge is not None:
|
if mod.charge is not None:
|
||||||
srcContext = "fittingCharge"
|
srcContext = "fittingCharge"
|
||||||
itemContext = sMkt.getCategoryByItem(mod.charge).name
|
itemContext = sMkt.getCategoryByItem(mod.charge).name
|
||||||
contexts.append((srcContext, itemContext))
|
fullContext = (srcContext, itemContext)
|
||||||
|
if not fullContext in contexts:
|
||||||
|
contexts.append(fullContext)
|
||||||
|
|
||||||
selection.append(mod)
|
selection.append(mod)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user