This should help debug the tutorial hang issue

Please don't merge this yet, as VS may have messed something up again. I will comment once I checked if everything works.
This commit is contained in:
aren-cllc 2017-02-08 16:17:28 +01:00 committed by GitHub
parent 982c575f9a
commit 1ac01d9a27

View file

@ -210,11 +210,12 @@ namespace ShiftOS.WinForms
SaveSystem.SaveGame();
Thread.Sleep(3000);
this.Invoke(new Action(() =>
{
try {
TutorialManager.StartTutorial();
}));
TutorialManager.StartTutorial();
} catch (Exeption e) {
TextType("An error has occoured while starting the tutorial");
TextType(e.ToString());
}
this.Close();
}
catch(Exception e)
@ -368,7 +369,9 @@ namespace ShiftOS.WinForms
Shiftorium.Silent = false;
foreach(var frm in AppearanceManager.OpenForms)
{
frm.Close();
(frm as Form).Invoke(new Action(() => {
frm.Close();
}));
}
TerminalBackend.CommandProcessed += (cmd, args) =>