Closed Bug 1725473 Opened 4 years ago Closed 4 years ago

Add preference to disable Windows unread badge on Thunderbird taskbar icon

Categories

(Thunderbird :: OS Integration, enhancement)

Thunderbird 91
Unspecified
Windows
enhancement

Tracking

(thunderbird_esr91 verified, thunderbird92 verified)

VERIFIED FIXED
93 Branch
Tracking Status
thunderbird_esr91 --- verified
thunderbird92 --- verified

People

(Reporter: w4rh4wk, Assigned: rnons)

Details

Attachments

(2 files, 1 obsolete file)

Attached patch add-winunreadbadge-perf.patch (obsolete) — Splinter Review

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0

Expected results:

Provide a preference to disable the new Windows unread badge. See attached patch for example.

Component: Untriaged → OS Integration
Attachment #9236052 - Attachment is patch: true
Attachment #9236052 - Attachment mime type: text/x-patch → text/plain

I sympathize with this RFE, but could you describe a bit why you don't want the red unread badge to display on the Thunderbird task bar icon?

Flags: needinfo?(w4rh4wk)
Summary: Add preference to disable Windows unread badge → Add preference to disable Windows unread badge on Thunderbird taskbar icon
OS: Unspecified → Windows

Sure. I simply do not want any form of email notification. If it's an email, it does not require my immediate attention and must therefore not interrupt my work. Of course I could just close Thunderbird completely, but that'd be rather inconvenient. Launching Thunderbird simply to check mails every now and then, followed by closing it again is a hassle. While the unread badge is a lot more subtle than a pop notification, it still draws too much attention when glancing at the taskbar.

While I appreciate the addition to Thunderbird, I'd like to have the option to turn it off.

Flags: needinfo?(w4rh4wk)

It just came to mind that closing Thunderbird is not even an option if you are using chat or calendar reminders.

I'd agree with reporter that users should be able to opt out of a permanently attention-seeking unread badge on the taskbar icon of your email app, and 3 lines of code to achieve that looks good to me.

Assignee: nobody → w4rh4wk
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

I am in agreement with w4rh4wk's explanation of why the notification is less than appealing. And, I appreciate the consideration being given to provide a switch for it. As a "joiner" to this thread, if I can provide further insight from another user, let me know.

+1 - The option to disable/enable should be provided.

+1 I'd like an option to disable this as well. Thunderbird says I have 99+ unread. I almost always have 99+ unread, it means nothing. nextdoor has a permanent red alert icon that won't disable unless I send invites to some of my neighbors and I'm not doing that either.

Comment on attachment 9236052 [details] [diff] [review] add-winunreadbadge-perf.patch Review of attachment 9236052 [details] [diff] [review]: ----------------------------------------------------------------- Thank you for the patch! You need to create the pref before using it. Some formatting nits. ::: mailnews/base/src/MailNotificationManager.jsm @@ +412,4 @@ > ); > let count = this._unreadMailCount + this._unreadChatCount; > let tooltip = ""; > + if (AppConstants.platform == "win" && Services.prefs.getBoolPref("mail.notification.winunreadbadge.enabled", true)) { * Please observe 80 chars line limit and use prettier.io for formatting the code. Works well e.g. with Atom editor plus Prettier add-on. * You also need to create this pref with a default value, otherwise it'll go wrong. Check the name of (almost) any other pref in code to see how it's done. * Not sure, but I think we should omit "win" from your pref name and make it a general pref, even if we're currently only applying it to windows. Guess we can try to expand to other OS as feasible later.
Attachment #9236052 - Flags: review-

Oh, and proper patch header with author etc. is missing. Check any other patch for an example.

Thunderbird Build environment will do all those things like patch headers, linting/Prettier etc. automatically for you.

I'm not on Windows, but I think there is a system setting to disable taskbar badges, have you tried that? I guess it's the same for macOS, we don't have a special pref to turn off badge on macOS.

The patch was more of a suggestion. I am not familiar with Thunderbird's code base, nor Mercurial, nor Thunderbird specific tools and workflows. Since the change should be rather trivial, I'd appreciate someone with more experience to 'just' make the change, fulfilling all requirements. Unless you insist that I work through the procedures.

Yes, it's possible to disable the badges in Window's task bar settings. I'm for WONTFIX this bug.

-> WONTFIX per comment 12.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX

(In reply to Magnus Melin [:mkmelin] from comment #13)

-> WONTFIX per comment 12.

I'm protesting this decision. I shouldn't have to choose between disabling badges for all applications or living with an annoying but useless badge from Thunderbird. Thunderbird should offer an option to disable this feature.

Disabling badges globally, for all applications, is not an acceptable solution. You wouldn't accept disabling all notifications on your phone simply because there is one app that keeps spamming you, either.

Of course it'd be great if Windows would just let me enable / disable badges on a per application basis. But until that's the case, applications should provide an on / off switch for this feature.

(In reply to Magnus Melin [:mkmelin] from comment #13)

-> WONTFIX per comment 12.

It may be possible to disable all taskbar badges in Windows 10 but AFAICT it's not possible in earlier versions. For example, the Thunderbird badge shows in Windows 7 Enterprise. Regardless it's baffling to me that you would stop a preference to disable it.

Ok, let's consider it. Perhaps the alternatives are not that great.

Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---

Unlike macOS, Windows doesn't have badge setting per-app.

Attachment #9236052 - Attachment is obsolete: true
Assignee: w4rh4wk → remotenonsense
Target Milestone: --- → 93 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/07ada58463db
Add a mail.biff.show_badge pref for Windows. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED

Thank you very much!

Comment on attachment 9236272 [details]
Bug 1725473 - Add a mail.biff.show_badge pref for Windows. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 715799
User impact if declined: Windows users have to turn off all taskbar badges in order to turn off TB's badge
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9236272 - Flags: approval-comm-esr91?
Attachment #9236272 - Flags: approval-comm-beta?

Comment on attachment 9236272 [details]
Bug 1725473 - Add a mail.biff.show_badge pref for Windows. r=mkmelin

[Triage Comment]
Approved for beta

Attachment #9236272 - Flags: approval-comm-beta? → approval-comm-beta+

Users have been keen about notifications lately. Worthy of relnote?

Flags: needinfo?(rob)
Flags: needinfo?(rob)

Comment on attachment 9236272 [details]
Bug 1725473 - Add a mail.biff.show_badge pref for Windows. r=mkmelin

[Triage Comment]
Approved for esr91

Attachment #9236272 - Flags: approval-comm-esr91? → approval-comm-esr91+

Verified fixed in Thunderbird 91.0.2 on Windows 10.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: