ysard / mintrayr

Mozilla extension: Minimize windows into the system tray (Firefox, Thunderbird, Seamonkey, Instantbird)
https://addons.thunderbird.net/en-US/thunderbird/addon/minimizetotray-reanimated/
Mozilla Public License 2.0
129 stars 14 forks source link

Multiple icons appearing in tray for multiple windows #31

Open Vilx2 opened 5 years ago

Vilx2 commented 5 years ago

When Thunderbird opens multiple windows (like when writing a new email), multiple icons also appear in the system tray. Furthermore, if the other window is "Write a new email" (perhaps in other cases too), there additional issues:

I believe that the correct behavior would be to display one icon per Thunderbird process. Restore option should only be visible when the window is minimized to tray and only apply to the main window of Thunderbird. Other windows should exist as before and not be affected by the tray icon.

Environment (please complete the following information):

ysard commented 5 years ago

Hi, I am currently thinking about minimizing windows other than the main window for a future addon. I have three choices:

The simplest is the first and it is also the one that I privileged for the moment. Your remarks will be taken into account in the future addon.

sonaux commented 5 years ago

I stand with variant "Minimize only main window to the tray", because whole idea of this plugin is to keep Thunderbird running when you are NOT using it's interface for reading/writing of emails or tasks. So, If you composing a letter and decided to switch to other activities for some time, use Save to Drafts and then minimize Thunderbird to hide it.

Vilx2 commented 5 years ago

Thank you, ysard! :)

The application that I've seen this do well is Microsoft Outlook. At least, years ago when I still used it. I don't know about recent versions. But back then it only had one icon in the systray. I think it didn't even disappear when the application was open - it was just there permanently while the process was running. And it changed appearance depending on whether you had unread mail or not. Thunderbird also has an option to show a systray icon when a new email has arrived, but it's separate from this icon. I don't know if they can be easily merged.

P.S. Fun fact - did you know that the correct name for systray is "the notification area"? :)

WPFilmmaker commented 5 years ago

I have encountered this issue once on Linux too. It is a common problem which was present also in other systemtotray addons.