Enabling or disabling filters in the filter list doesn't stick, reverts to previous state when the panel is opened again
Categories
(Thunderbird :: Filters, defect)
Tracking
(thunderbird67 fixed, thunderbird68 fixed)
People
(Reporter: jorgk-bmo, Assigned: aceman)
Details
(Keywords: regression)
Attachments
(1 file)
|
2.89 KB,
patch
|
darktrojan
:
review+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
Enabling or disabling filters in the filter list doesn't stick, reverts to previous state when the panel is opened again.
Regressed by bug 1475817, https://hg.mozilla.org/comm-central/rev/c038f663b745 .
The main fix is the change from !this.checked to this.checked as the toggleFilter was storing the inverted value than was displayed.
I changed the listener from 'click' to 'CheckboxStateChange' event, because previously we listened to click and managed (in toggleFilter) what state was displayed for the checkbox. Now when it is a real checkbox element, it shows and manages its state by itself and we only follow and save the state into filter. So the state of the checkbox could change by other means, not just by click (thus onFilterClick wouldn't be called). So let's tie onFilterClick() to the checkbox state better.
Also notice that when you click the checkbox (or to the right of it), it toggles and the filter row loses proper selection. The background highlight turns grey from blue (on Linux). You can use up/down arrows to move the grey bar and then toggling checkboxes using space key produces interesting effects. I do not fix this here, but it is again a regression, it does not happen on TB60. Geoff, please file and fix that separately.
| Reporter | ||
Comment 3•7 years ago
|
||
This works OK in TB 66 beta 3, so bug 1475817 can't be the culprit here.
| Reporter | ||
Updated•7 years ago
|
Comment 5•7 years ago
•
|
||
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Updated•7 years ago
|
I think otherwise the enabled state of the filter and the checkbox may diverge if e.g. someone sets checkbox.checked = value instead of clicking it.
So let's try the patch as is, thanks.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/9938df594a75
make 'Enabled' filter property in filter list stick by properly checking the state of the checkbox. r=darktrojan
| Reporter | ||
Comment 8•7 years ago
|
||
Description
•