Startup sometimes creates a view for the folder at index 0 in folder pane instead of the folder that should be restored
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(Not tracked)
People
(Reporter: betterbird.project+14, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Steps to reproduce:
We noticed that startup sometimes creates a view for the folder at index 0 in folder pane instead of the folder that should be restored.
If the folder at index 0 is a unified inbox which is grouped-by-sort, creating the view for this folder can delay startup considerably. The view flashes just briefly just to be replaced with the view of the folder which really needs to be restored.
This patch
https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/NNN7-fix-wrong-folder-at-startup.patch
mitigates the issue in a hacky way. Logging in the console sometime shows:
3pane init: Waited 200 ms and index of selected folder is 1
Without the wait, the unified inbox folder at index 0 would have been restored first, causing a ~12s delay.
Note that bug 1875577 will address the slowness, but the issue still of displaying the wrong folder first remains.
Description
•