search all added Contexts for the given commandID
This commit is contained in:
parent
7d72b3b0f9
commit
5194305560
@ -59,6 +59,12 @@ namespace MBS.Framework
|
|||||||
Command cmd = FindCommandInternal(commandID);
|
Command cmd = FindCommandInternal(commandID);
|
||||||
if (cmd != null) return cmd;
|
if (cmd != null) return cmd;
|
||||||
|
|
||||||
|
foreach (Context ctx in Contexts)
|
||||||
|
{
|
||||||
|
cmd = ctx.Commands[commandID];
|
||||||
|
if (cmd != null) return cmd;
|
||||||
|
}
|
||||||
|
|
||||||
cmd = Commands[commandID];
|
cmd = Commands[commandID];
|
||||||
if (cmd != null) return cmd;
|
if (cmd != null) return cmd;
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user