modified has_cmdset to accept either a cmdset's python path or key
This commit is contained in:
parent
d1c2c0f8d3
commit
78d422dd7a
1 changed files with 2 additions and 1 deletions
|
|
@ -553,7 +553,8 @@ class CmdSetHandler(object):
|
||||||
if must_be_default:
|
if must_be_default:
|
||||||
return self.cmdset_stack and self.cmdset_stack[0].key == cmdset_key
|
return self.cmdset_stack and self.cmdset_stack[0].key == cmdset_key
|
||||||
else:
|
else:
|
||||||
return any([cmdset.key == cmdset_key for cmdset in self.cmdset_stack])
|
return any([cmdset.key == cmdset_key or cmdset.path == cmdset_key
|
||||||
|
for cmdset in self.cmdset_stack])
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue