Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2016-04-18 18:45:54 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2016-04-18 18:45:54 +0300
commita62f8e093308e7108f8785457a6907798a0dd97e (patch)
tree98740560dd1a96ae4b578e0bb49804f3e76030cd /main
parentddf2f90a0886ea390bde5283c4390728347c7a87 (diff)
[Ide] Guarantee that initialized callbacks are run on the UI thread.
Diffstat (limited to 'main')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs
index b7138efba9..8a38122890 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs
@@ -72,7 +72,7 @@ namespace MonoDevelop.Ide
static EventHandler initializedEvent;
public static event EventHandler Initialized {
add {
- if (isInitialized) value (null, EventArgs.Empty);
+ if (isInitialized) Runtime.RunInMainThread (() => value (null, EventArgs.Empty));
else initializedEvent += value;
}
remove {