FireTray icon indicating copy to clipboard operation
FireTray copied to clipboard

Only show tray icon when minimized

Open qcybb opened this issue 6 years ago • 1 comments

Is it possible for you to make it only show the tray icon when Thunderbird is minimized?

When the program is active, it's confusing to see both the program in the task bar and the tray icon at the same time. It should only show the icon in the tray when it's minimized.

qcybb avatar Mar 07 '19 19:03 qcybb

I managed to fix it by editing the file : modules/FiretrayHandler.jsm

Find :

firetray.Window.init();
firetray.StatusIcon.init();
firetray.Handler.showHideIcon();

Add After : firetray.Handler.setIconVisibility(false);

Find :

  showAllWindows: function() {
    for (let winId in firetray.Handler.windows) {
      if (!firetray.Handler.windows[winId].visible)
        firetray.Handler.showWindow(winId);

Add After : firetray.Handler.setIconVisibility(false);

Find :

  hideAllWindows: function() {
    for (let winId in firetray.Handler.windows) {
      if (firetray.Handler.windows[winId].visible)
        firetray.Handler.hideWindow(winId);

Add After : firetray.Handler.setIconVisibility(true);

qcybb avatar Mar 07 '19 20:03 qcybb