diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-04-18 18:45:54 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-04-18 18:45:54 +0300 |
commit | a62f8e093308e7108f8785457a6907798a0dd97e (patch) | |
tree | 98740560dd1a96ae4b578e0bb49804f3e76030cd /main | |
parent | ddf2f90a0886ea390bde5283c4390728347c7a87 (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.cs | 2 |
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 { |