search all added Contexts for the given commandID

This commit is contained in:
Michael Becker 2021-02-27 08:37:41 -05:00
parent 7d72b3b0f9
commit 5194305560
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -59,6 +59,12 @@ namespace MBS.Framework
Command cmd = FindCommandInternal(commandID);
if (cmd != null) return cmd;
foreach (Context ctx in Contexts)
{
cmd = ctx.Commands[commandID];
if (cmd != null) return cmd;
}
cmd = Commands[commandID];
if (cmd != null) return cmd;
return null;