private static IEnumerator CallBack(MechLabPanel panel)
        {
            yield return(new WaitForEndOfFrame());

            try
            {
                var path = DebugScreenshotMechsFeature.Shared.ScreenshotPath(panel.originalMechDef);
                if (path != null)
                {
                    CaptureScreenshot(path);
                    panel.OnCancelClicked();
                }
            }
            catch (Exception e)
            {
                Control.Logger.Error.Log(e);
            }
        }