From 6e7a911477689b340776e6b921182a9e4b93a1cd Mon Sep 17 00:00:00 2001 From: Robin Krom Date: Wed, 15 Apr 2020 22:49:43 +0200 Subject: [PATCH] This should fix showing the notification on the first start. --- Greenshot/Forms/MainForm.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index a197a8cf5..9a7f21290 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -352,7 +352,7 @@ namespace Greenshot { // Disable access to the settings, for feature #3521446 contextmenu_settings.Visible = !_conf.DisableSettings; - // Make sure all hotkeys pass this window! + // Make sure all hot-keys pass this window! HotkeyControl.RegisterHotkeyHwnd(Handle); RegisterHotkeys(); @@ -444,9 +444,11 @@ namespace Greenshot { Exit(); break; case CommandEnum.FirstLaunch: - LOG.Info("FirstLaunch: Created new configuration, showing balloon."); - var notifyIconClassicMessageHandler = SimpleServiceProvider.Current.GetInstance(); - notifyIconClassicMessageHandler.ShowInfoMessage(Language.GetFormattedString(LangKey.tooltip_firststart, HotkeyControl.GetLocalizedHotkeyStringFromString(_conf.RegionHotkey)), 2000, ShowSetting); + Invoke((MethodInvoker)delegate { + LOG.Info("FirstLaunch: Created new configuration, showing balloon."); + var notifyIconClassicMessageHandler = SimpleServiceProvider.Current.GetInstance(); + notifyIconClassicMessageHandler.ShowInfoMessage(Language.GetFormattedString(LangKey.tooltip_firststart, HotkeyControl.GetLocalizedHotkeyStringFromString(_conf.RegionHotkey)), 2000, ShowSetting); + }); break; case CommandEnum.ReloadConfig: LOG.Info("Reload requested");