public static void AddQuickAction(String name, Action action) { if (SameThread()) { Console.AddQuickAction(name, action); } else { EnqueueAction((() => Console.AddQuickAction(name, action))); } }