Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

TrayIcon does not disappear from notification area on Windows at exit (Patch). #26

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Windows is a little fussy, particularly with tray icons, and will leave the 
icon showing until forced to repaint that area of the screen unless the 
icon is hidden at exit time.

The attached patch simple hides and disposes the TrayIcon in the 
Application class in the Quit() call.  Unfortunately I haven't been able to 
test this under Mono/Linux) to make sure there are no side-effects there. 
Sorry.

Original issue reported on code.google.com by [email protected] on 19 Apr 2009 at 10:08

Attachments:

@GoogleCodeExporter
Copy link
Author

This probably works fine in Linux, as we use a similar approach for Tomboy (not 
sure
if we do the Dispose, though).

Original comment by [email protected] on 20 Apr 2009 at 12:58

@GoogleCodeExporter
Copy link
Author

I don't think the Dispose() is technically necessary at this stage, as the 
application is shutting down and releasing resources is pointless *if* the end 
of 
process correctly releases all of the resources and doesn't leak handles. 

Windows has not inspired a huge level of trust with me, hence my proclivity for 
always calling Dispose(), or using(){} ;)




Original comment by [email protected] on 20 Apr 2009 at 11:11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant