You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Thunderbird 102 - current category is not remembered / selected #279
This version stores its own session information whenever a new tab is opened / selected / deleted / moved in the current window. It also restores reliably in most cases. It doesn't keep track of multiple windows, so if you open a second and third window and change tabs there and then close them this version may not store the correct category information. For it to work in that case I need to also find an event for when the "Main" (if there is a main) window is focused and store the tabSession again (in case it was overwritten by other windows). I also don't currently know which window is restored when Thunderbird closes all windows because a user selected "close all windows" from the taskbar or shuts down the OS causing the windows to be closed. I consider these as edge cases for the moment.
To see what's happening behind the scenes with the session, enabled Debug mode (from QF advanced settings) and then filter the error console for loadTabSession or storeTabSession.
Fixed a problem with invalid categories staying in the tab session forever. Now on every categorySelect() call we check for validity of the first category. To do: do a full test with multiple category selection.
Next version - there were still some problems with selecting multiple categories and proper recovering from deleted categories. This version does some sanity checking when selecting a tab and removes invalid categories from the tabInfo object - it will switch the tab back to view all categories if none of the categories exist anymore.
With the help of a user's profile I managed to remove one more problem when starting up that would still lead to no category (and not __ALL) selected resulting in no visible tab:
Activity
RealRaven2000 commentedon Jul 16, 2022
Here is a first patch that works reasonably well:
QuickFolders-mx-5.11pre70.zip
This version stores its own session information whenever a new tab is opened / selected / deleted / moved in the current window. It also restores reliably in most cases. It doesn't keep track of multiple windows, so if you open a second and third window and change tabs there and then close them this version may not store the correct category information. For it to work in that case I need to also find an event for when the "Main" (if there is a main) window is focused and store the tabSession again (in case it was overwritten by other windows). I also don't currently know which window is restored when Thunderbird closes all windows because a user selected "close all windows" from the taskbar or shuts down the OS causing the windows to be closed. I consider these as edge cases for the moment.
To see what's happening behind the scenes with the session, enabled Debug mode (from QF advanced settings) and then filter the error console for
loadTabSessionorstoreTabSession.issue #279 - restore categories in Tb102
RealRaven2000 commentedon Jul 17, 2022
Fixed some code that stores wrong categories when folder is opened in a new tab or a folder / message tab is closed that is currently not selected:
QuickFolders-mx-5.11pre75.zip
As always, to install this version please download the zip file and drag it into Thunderbird Add-ons Manager (without unpacking)
RealRaven2000 commentedon Jul 19, 2022
Fixed a problem with invalid categories staying in the tab session forever. Now on every categorySelect() call we check for validity of the first category. To do: do a full test with multiple category selection.
QuickFolders-mx-5.11pre89.zip
As always, to install this version please download the zip file and drag it into Thunderbird Add-ons Manager (without unpacking)
RealRaven2000 commentedon Jul 20, 2022
Next version - there were still some problems with selecting multiple categories and proper recovering from deleted categories. This version does some sanity checking when selecting a tab and removes invalid categories from the tabInfo object - it will switch the tab back to view all categories if none of the categories exist anymore.
QuickFolders-mx-5.11pre92.zip
To install this version please download the zip file and drag it into Thunderbird Add-ons Manager (without unpacking)
RealRaven2000 commentedon Jul 20, 2022
With the help of a user's profile I managed to remove one more problem when starting up that would still lead to no category (and not __ALL) selected resulting in no visible tab:
QuickFolders-mx-5.11pre93.zip
To install this version please download the zip file and drag it into Thunderbird Add-ons Manager (without unpacking)
#279 - fix category restoration on startup & when importing from conf…
RealRaven2000 commentedon Jul 23, 2022
Implemented in 5.11 - Published 23/07/2022