Calendar tab doesn't always restore to the right view
Categories
(Calendar :: Calendar Frontend, defect)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(1 file)
1.35 KB,
patch
|
Fallen
:
review+
Fallen
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
I usually leave my calendar tab open, and on the multi-week view. I've noticed that sometimes when I start Thunderbird the calendar tab has the week or day view.
We get the view to show (in getLastCalendarView
) from the selected index of view-deck
, which in turn gets it from the XUL store via the overlay loader. The overlay loader itself has special handling for <deck>
elements. There's some timing issue here.
I've tried modifying getLastCalendarView
to directly query the XUL store but I think even that doesn't work every time. I wonder if we should just skip the XUL store altogether and keep the most-recently-used view in a pref.
Assignee | ||
Comment 1•5 years ago
|
||
This might be more effective than I thought. In any case I think it's worth doing.
Comment 2•5 years ago
|
||
Related to or same as Bug 1549082?
Assignee | ||
Comment 3•5 years ago
|
||
Quite possibly related, although there's some differences.
My proposed solution failed again today, so it's not perfect but it seems more reliable than it was.
Comment 4•5 years ago
|
||
Comment on attachment 9067253 [details] [diff] [review] 1553000-last-calendar-view-1.diff Review of attachment 9067253 [details] [diff] [review]: ----------------------------------------------------------------- I'm fine with using a pref as well.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Comment on attachment 9067253 [details] [diff] [review] 1553000-last-calendar-view-1.diff Look what I forgot to set (again).
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/8503388a3844
Get last-used calendar view directly from the XUL store. r=philipp
Updated•5 years ago
|
Updated•5 years ago
|
Comment 7•5 years ago
|
||
TB 68 beta / Cal 7.0:
https://hg.mozilla.org/releases/comm-beta/rev/bad5bfd2b1bbc4c57468fcf2ef4e436dc14be667
Description
•