Closed Bug 917502 Opened 11 years ago Closed 8 years ago

Changes to dock badge string don't get reflected

Categories

(Thunderbird :: OS Integration, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mozilla, Unassigned)

Details

Attachments

(1 file)

I was playing around with the hook to alter the dock icon badge string using an observer on the topic "before-unread-count-display", which was introduced with bug 274688. Supplying an empty string successfully suppresses the displaying of the count. However, any non-empty string is not displayed. Instead, the actual (original) count is displayed.
The problem is that always "total.get()" is displayed, unless the displaying was aborted due to an empty string from an observer. The attached patch should fix this, instead of displaying "total.get()", "badgeString" is always displayed (which is initialized with "total.get()").
Fixed on changeset 15743:64b07ee8a793? http://hg.mozilla.org/comm-central/rev/64b07ee8a793, bug 918783
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: