From 3637cd0420caaa0ffe50c3f437bb8a7714ab68b7 Mon Sep 17 00:00:00 2001 From: RKrom Date: Sat, 22 Sep 2012 13:00:51 +0000 Subject: [PATCH] Fixed a Thread setup, no reported bugs on the "error" yet. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2081 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/MainForm.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index 1f788d3cd..b415dd30a 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -343,17 +343,18 @@ namespace Greenshot { if (conf.OutputDestinations.Count == 0) { conf.OutputDestinations.Add(Destinations.EditorDestination.DESIGNATION); } - if (conf.DisableQuickSettings) { - contextmenu_quicksettings.Visible = false; - } else { - BeginInvoke((MethodInvoker)delegate { - // Do after all plugins & finding the destination, otherwise they are missing! - InitializeQuickSettingsMenu(); - }); - } + if (conf.DisableQuickSettings) { + contextmenu_quicksettings.Visible = false; + } else { + BeginInvoke((MethodInvoker)delegate { + // Do after all plugins & finding the destination, otherwise they are missing! + InitializeQuickSettingsMenu(); + }); + } }); pluginInitThread.Name = "Initialize plug-ins"; pluginInitThread.IsBackground = true; + pluginInitThread.SetApartmentState(ApartmentState.STA); pluginInitThread.Start(); SoundHelper.Initialize();