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
This commit is contained in:
RKrom 2012-09-22 13:00:51 +00:00
commit 3637cd0420

View file

@ -343,17 +343,18 @@ namespace Greenshot {
if (conf.OutputDestinations.Count == 0) { if (conf.OutputDestinations.Count == 0) {
conf.OutputDestinations.Add(Destinations.EditorDestination.DESIGNATION); conf.OutputDestinations.Add(Destinations.EditorDestination.DESIGNATION);
} }
if (conf.DisableQuickSettings) { if (conf.DisableQuickSettings) {
contextmenu_quicksettings.Visible = false; contextmenu_quicksettings.Visible = false;
} else { } else {
BeginInvoke((MethodInvoker)delegate { BeginInvoke((MethodInvoker)delegate {
// Do after all plugins & finding the destination, otherwise they are missing! // Do after all plugins & finding the destination, otherwise they are missing!
InitializeQuickSettingsMenu(); InitializeQuickSettingsMenu();
}); });
} }
}); });
pluginInitThread.Name = "Initialize plug-ins"; pluginInitThread.Name = "Initialize plug-ins";
pluginInitThread.IsBackground = true; pluginInitThread.IsBackground = true;
pluginInitThread.SetApartmentState(ApartmentState.STA);
pluginInitThread.Start(); pluginInitThread.Start();
SoundHelper.Initialize(); SoundHelper.Initialize();