diff options
| author | Michael VanOverbeek <[email protected]> | 2017-02-08 10:40:00 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-02-08 10:40:00 -0500 |
| commit | 530d34e1aeb040c4330b1693e6cbb7e25cf49784 (patch) | |
| tree | 0f9f2a71d3f950e3e4ea07ab39ccdcb8c7617142 /ShiftOS.WinForms | |
| parent | 982c575f9adaf4c12ef3911033d44e0e78d138f8 (diff) | |
| parent | 42cfccfdbe5473bac0701cf805756b41bbd4f288 (diff) | |
| download | shiftos_thereturn-530d34e1aeb040c4330b1693e6cbb7e25cf49784.tar.gz shiftos_thereturn-530d34e1aeb040c4330b1693e6cbb7e25cf49784.tar.bz2 shiftos_thereturn-530d34e1aeb040c4330b1693e6cbb7e25cf49784.zip | |
Merge pull request #56 from aren-cllc/patch-1
This should help debug the tutorial hang issue
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/Oobe.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ShiftOS.WinForms/Oobe.cs b/ShiftOS.WinForms/Oobe.cs index 98aaebd..8eef34a 100644 --- a/ShiftOS.WinForms/Oobe.cs +++ b/ShiftOS.WinForms/Oobe.cs @@ -210,12 +210,13 @@ namespace ShiftOS.WinForms SaveSystem.SaveGame(); Thread.Sleep(3000); - this.Invoke(new Action(() => - { + try { TutorialManager.StartTutorial(); - })); - TutorialManager.StartTutorial(); - this.Close(); + } catch (Exception e) { + TextType("An error has occoured while starting the tutorial"); + TextType(e.ToString()); + } + //this.Close(); // This has been commented out because the form closes when the error appears. Uncomment this if no more errors appear } 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) => |
