mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
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:
parent
982c575f9a
commit
1ac01d9a27
1 changed files with 8 additions and 5 deletions
|
@ -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) =>
|
||||
|
|
Loading…
Reference in a new issue