aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/OobeStory.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-08 11:31:20 -0400
committerMichael <[email protected]>2017-05-08 11:31:29 -0400
commit75ed7e9215ba88358d9b838dd82fa3841f78ae5a (patch)
treee976fbb38056e38fcd8393c3efcfe3db12f3c4b0 /ShiftOS.WinForms/OobeStory.cs
parent4a5db39ea7c0b9be342261ab416dbb5edf50b2ce (diff)
downloadshiftos_thereturn-75ed7e9215ba88358d9b838dd82fa3841f78ae5a.tar.gz
shiftos_thereturn-75ed7e9215ba88358d9b838dd82fa3841f78ae5a.tar.bz2
shiftos_thereturn-75ed7e9215ba88358d9b838dd82fa3841f78ae5a.zip
Fix softlocks on pre-user OOBE.
Diffstat (limited to 'ShiftOS.WinForms/OobeStory.cs')
-rw-r--r--ShiftOS.WinForms/OobeStory.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/OobeStory.cs b/ShiftOS.WinForms/OobeStory.cs
index bab4889..39ca5b5 100644
--- a/ShiftOS.WinForms/OobeStory.cs
+++ b/ShiftOS.WinForms/OobeStory.cs
@@ -120,7 +120,7 @@ namespace ShiftOS.WinForms
Console.Write(" ");
ConsoleEx.BackgroundColor = ConsoleColor.Black;
}
- Engine.AudioManager.PlayStream(Properties.Resources.typesound);
+ Desktop.InvokeOnWorkerThread(() => Engine.AudioManager.PlayStream(Properties.Resources.typesound));
formatProgress++;
Thread.Sleep(175);
}
@@ -135,14 +135,16 @@ namespace ShiftOS.WinForms
{
Console.WriteLine("Creating: " + dir);
Thread.Sleep(125);
- Engine.AudioManager.PlayStream(Properties.Resources.writesound);
+ Desktop.InvokeOnWorkerThread(() => Engine.AudioManager.PlayStream(Properties.Resources.writesound));
}
}
Console.WriteLine();
Console.WriteLine("Next, let's get user information.");
Console.WriteLine();
- ShiftOS.Engine.OutOfBoxExperience.PromptForLogin();
-
+ Desktop.InvokeOnWorkerThread(() =>
+ {
+ ShiftOS.Engine.OutOfBoxExperience.PromptForLogin();
+ });
}
private static bool isValid(string text, string chars)
{