From 712eb437eaf03cbc9fcb64ee2ce525a5f4c984e3 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 7 Jan 2011 20:38:29 +1300 Subject: [PATCH] blah --- OpenRA.Launcher/JSBridge.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Launcher/JSBridge.cs b/OpenRA.Launcher/JSBridge.cs index a43cf2bd45..91fac6da92 100644 --- a/OpenRA.Launcher/JSBridge.cs +++ b/OpenRA.Launcher/JSBridge.cs @@ -55,7 +55,7 @@ namespace OpenRA.Launcher modList.Add(m); if (!allMods.ContainsKey(m)) { - System.Windows.Forms.MessageBox.Show("allMods does not contain " + m); + MessageBox.Show("allMods does not contain " + m); return false; } while (!string.IsNullOrEmpty(allMods[m].Requires)) @@ -174,11 +174,11 @@ namespace OpenRA.Launcher var p = UtilityProgram.Call("--download-url", pipename, (_, e) => { - using (var reader = new StreamReader(pipe)) { var data = reader.ReadToEnd(); - document.InvokeScript(callbackName, new object[] { data }); + Form.ActiveForm.Invoke((Delegate)(Action)(() => + document.InvokeScript(callbackName, new object[] { data }))); } }, url);