public static bool ForceRestartAfterLangChange(LoadedLanguage lang)
        {
            Prefs.LangFolderName = lang.folderName;
            Prefs.Save();
            var dialog = new Dialog_MessageBox("HugsLib_restart_language_text".Translate(), null, () => {
                LongEventHandler.ExecuteWhenFinished(GenCommandLine.Restart);
            });

            QuickRestarter.BypassOrShowDialog(dialog);
            return(false);
        }
 private static void TryQuickRestart(WindowStack stack, Window messageWindow)
 {
     QuickRestarter.BypassOrShowDialog(messageWindow);
 }