Make sure icon gets removed

This commit is contained in:
2021-12-20 14:01:48 -05:00
parent 42301d5242
commit 287c008117
2 changed files with 3 additions and 1 deletions

View File

@@ -93,6 +93,8 @@ namespace WorkIndicator
return;
_dispatcher.Invoke(() => TrayIcon.ShowUpdateMessage(message));
TrayIcon.Dispose();
}
protected override void OnExit(ExitEventArgs e)

View File

@@ -70,7 +70,7 @@ namespace WorkIndicator
public static void ShowUpdateMessage(string text)
{
_trayIcon.ShowBalloonTip(250, Resources.ApplicationName, text, ToolTipIcon.None);
_trayIcon.ShowBalloonTip(200, Resources.ApplicationName, text, ToolTipIcon.None);
}
static void HandleContextMenuStripOpening(object sender, System.ComponentModel.CancelEventArgs e)