This should fix showing the notification on the first start.

This commit is contained in:
Robin Krom 2020-04-15 22:49:43 +02:00
commit 6e7a911477

View file

@ -352,7 +352,7 @@ namespace Greenshot {
// Disable access to the settings, for feature #3521446 // Disable access to the settings, for feature #3521446
contextmenu_settings.Visible = !_conf.DisableSettings; contextmenu_settings.Visible = !_conf.DisableSettings;
// Make sure all hotkeys pass this window! // Make sure all hot-keys pass this window!
HotkeyControl.RegisterHotkeyHwnd(Handle); HotkeyControl.RegisterHotkeyHwnd(Handle);
RegisterHotkeys(); RegisterHotkeys();
@ -444,9 +444,11 @@ namespace Greenshot {
Exit(); Exit();
break; break;
case CommandEnum.FirstLaunch: case CommandEnum.FirstLaunch:
Invoke((MethodInvoker)delegate {
LOG.Info("FirstLaunch: Created new configuration, showing balloon."); LOG.Info("FirstLaunch: Created new configuration, showing balloon.");
var notifyIconClassicMessageHandler = SimpleServiceProvider.Current.GetInstance<INotificationService>(); var notifyIconClassicMessageHandler = SimpleServiceProvider.Current.GetInstance<INotificationService>();
notifyIconClassicMessageHandler.ShowInfoMessage(Language.GetFormattedString(LangKey.tooltip_firststart, HotkeyControl.GetLocalizedHotkeyStringFromString(_conf.RegionHotkey)), 2000, ShowSetting); notifyIconClassicMessageHandler.ShowInfoMessage(Language.GetFormattedString(LangKey.tooltip_firststart, HotkeyControl.GetLocalizedHotkeyStringFromString(_conf.RegionHotkey)), 2000, ShowSetting);
});
break; break;
case CommandEnum.ReloadConfig: case CommandEnum.ReloadConfig:
LOG.Info("Reload requested"); LOG.Info("Reload requested");