Closed Bug 1824018 Opened 1 year ago Closed 1 year ago

Delete and Junk buttons in unified toolbar are disabled (greyed out). Deselecting all messages does not disable them again.

Categories

(Thunderbird :: Toolbars and Tabs, defect, P2)

Thunderbird 113
All
Unspecified

Tracking

(thunderbird_esr102 unaffected, thunderbird113 wontfix, thunderbird114+ fixed)

RESOLVED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird113 --- wontfix
thunderbird114 + fixed

People

(Reporter: chriechers, Assigned: darktrojan)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [Supernova3p])

Attachments

(2 files)

TB113.0a1 (2023-03-22) on Linux
STR:
Unified toolbar is customized with a number of buttons - see screenshot.

Actual result:

  • The Delete and Junk buttons are inactive (greyed out) when Thunderbird starts, and Inbox is selected in the folder pane.
  • When different folders are selected in the folder pane, one or both buttons (Delete and/or Junk) may become active eventually. However, this isn't consistently reproducible.

Expected result:
All the buttons in the unified toolbar should be active right from the start.

Whiteboard: [supernova]

Thanks Christian.

  • It's expected for the message action buttons to be disabled when no message is selected. In case of delete, the button should be disabled only when neither a message nor a deletable folder is selected (folder must be focused, too, I think). Inbox is not a deletable folder.
  • However, on 113.0a1 (2023-03-22) (64-bit), Win10, deselecting the only selected message will not disable the buttons again, which looks like a bug.

Christian, is there a scenario where are you seeing those buttons disabled in spite of a message being selected?

Flags: needinfo?(chriechers)
Summary: Delete and Junk buttons in unified toolbar are greyed out → Delete and Junk buttons in unified toolbar are disabled (greyed out). - Deselecting all messages does not disable them again.
Severity: -- → S3

(In reply to Thomas D. (:thomas8) from comment #1)

  • It's expected for the message action buttons to be disabled when no message is selected. In case of delete, the button should be disabled only when neither a message nor a deletable folder is selected (folder must be focused, too, I think). Inbox is not a deletable folder.

Agreed.

is there a scenario where are you seeing those buttons disabled in spite of a message being selected?

Yes, selecting one or more messages in Inbox will not activate the Delete and Junk buttons, they remain greyed out.
Selecting a deletable folder will activate the Delete button, but not the Junk button.

Flags: needinfo?(chriechers)
Duplicate of this bug: 1827514

Better now?

Flags: needinfo?(chriechers)

(In reply to Wayne Mery (:wsmwk) from comment #4)

Better now?

No, neither in beta nor in daily.

Flags: needinfo?(chriechers)
Whiteboard: [supernova] → [Supernova3p]

The problem with grayed out toolbar buttons does not seem to be limited to 'Delete' and 'Junk' buttons - see https://support.mozilla.org/en-US/questions/1412059
I can confirm the following statement from the support topic:
"The only way to enable these buttons is to click away from an email or folder, and then return to that item, causing the buttons to be enabled again."

When different folders are selected in the folder pane, one or both buttons (Delete and/or Junk) may become active eventually. However, this isn't consistently reproducible.

This seems really messy, perhaps even problematic. For example I see delete enabled for Spam folder.

It's expected for the message action buttons to be disabled when no message is selected. In case of delete, the button should be disabled only when neither a message nor a deletable folder is selected (folder must be focused, too, I think). Inbox is not a deletable folder.

Right. I am concerned that we might not be blocking the deletion of non-deletable folders in all cases. I haven't done lots of testing, but at one point I was seeing a folder other than Spam for which delete was enabled.

Magnus, this isn't strictly a toolbar issue, correct?

Flags: needinfo?(mkmelin+mozilla)
Priority: -- → P2
Summary: Delete and Junk buttons in unified toolbar are disabled (greyed out). - Deselecting all messages does not disable them again. → Delete and Junk buttons in unified toolbar are disabled (greyed out). Deselecting all messages does not disable them again.

It is a toolbar issue. Nothing's updating the toolbar when the selection changes. I am already working on this for the Delete button so I'll look at the others too.

Flags: needinfo?(mkmelin+mozilla)
Assignee: nobody → geoff
Status: NEW → ASSIGNED

This fixes both buttons to update when the selected message changes, changes the Delete label to Undelete where appropriate, and hooks the delete button to cmd_deleteMessages so it only deletes messages.

Target Milestone: --- → 115 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/089782a62551
Fix the toolbar Delete and Junk buttons. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Attachment #9332305 - Flags: approval-comm-beta?

Comment on attachment 9332305 [details]
Bug 1824018 - Fix the toolbar Delete and Junk buttons. r=aleca

[Triage Comment]
Approved for beta

Attachment #9332305 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: