mirror of
https://github.com/ckaczor/WorkIndicator.git
synced 2026-01-13 17:23:18 -05:00
Make sure icon gets removed
This commit is contained in:
@@ -93,6 +93,8 @@ namespace WorkIndicator
|
||||
return;
|
||||
|
||||
_dispatcher.Invoke(() => TrayIcon.ShowUpdateMessage(message));
|
||||
|
||||
TrayIcon.Dispose();
|
||||
}
|
||||
|
||||
protected override void OnExit(ExitEventArgs e)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user