Implement fittingMode

This commit is contained in:
Ebag333
2016-12-08 18:56:43 -08:00
parent 9403a1fce9
commit 5eb2fef89c
4 changed files with 21 additions and 21 deletions

View File

@@ -71,13 +71,8 @@ class ContextMenu(object):
texts = m.getText(itemContext, selection)
# Check the selected item to see if it has special reasons for not showing the menu item
skip_menu_item = False
for sel in selection:
if hasattr(sel, "_Mode__item") and texts == "Remove Module":
# Don't show remove for modes, these are special modules that cannot be removed
skip_menu_item = True
if skip_menu_item == True:
if srcContext == "fittingMode" and texts == "Remove Module":
# Don't show remove for modes, these are special modules that cannot be removed
continue
if isinstance(texts, basestring):