RealRaven2000 / QuickFolders

Thunderbird Add-on: QuickFolders
http://quickfolders.org/
Other
49 stars 9 forks source link

Click on tabs resets unified folder view #25

Open r4dh4l opened 4 years ago

r4dh4l commented 4 years ago

Hi,

QuickFolders sometimes resets View -> Folders -> Unified to View -> Folders -> All.

Unfortunately it is hard to reproduce. Sometimes I can click as often I want on QuickFolders tabs and my view settings stay in "unified" and sometimes I just click one time on a tab and the view changes to "all".

RealRaven2000 commented 4 years ago

QuickFolders sometimes resets View -> Folders -> Unified to View -> Folders -> All.

Personally I am not using unified folders, so sorry if I do not know much more about this right now.

The behaviour is probably by design: QuickFolders will open the current folder connected to the QuickFolders Tab and scroll it into view; this its base functionality and expected. This information will hopefully help you to come up with a way of making this reproducible.

If the current folder is not displayed in the currently set folders view Thunderbird may switch it to another view that displays the folder. Can you check whether the folder was in a collapsed parent folder at the time? In some brief testing here it expands the parent folder tree and jumps to the folder, while remaining in "Unified Folders" view.

If you activate debug mode on the Advanced tab in QuickFolders settings; then right-click the debug checkbox to activate

extensions.quickfolders.debug.folders.select=true

you will get more information during a folder selection on the JavaScript error console

image

Example output for clicking on a tab and thus jumping to the folder named quickFilters.

QuickFolders {FOLDERS.SELECT} 13:27:20.887  [5577 ms]    
QuickFolders_MySelectFolder: mailbox://axelg@pop.vodafone.ie/Development/Mozilla/Addons/quickFilters
QuickFolders {FOLDERS.SELECT} 13:27:20.887  [0 ms]   
try to find open tab with folder...
QuickFolders {FOLDERS.SELECT} 13:27:20.888  [1 ms]   
...folder is currently not open in any Tab.
QuickFolders {FOLDERS.SELECT} 13:27:20.888  [0 ms]   
folder [quickFilters] flags = 4
QuickFolders {FOLDERS.SELECT} 13:27:20.889  [1 ms]   
folderIndex = 107
QuickFolders {FOLDERS.SELECT} 13:27:20.889  [0 ms]   
ensureFolderViewTab()
QuickFolders {FOLDERS.SELECT} 13:27:20.889  [0 ms]   
parent index: 90
QuickFolders {FOLDERS.SELECT} 13:27:20.889  [0 ms]   
Selecting folder via treeview.select(quickFilters)..
mailbox://axelg@pop.vodafone.ie/Development/Mozilla/Addons/quickFilters
QuickFolders {FOLDERS.SELECT} 13:27:20.919  [30 ms]  
ensureRowIsVisible()..
QuickFolders {FOLDERS.SELECT} 13:27:20.920  [1 ms]   
setFocusThreadPane()

At the end you should see the last 3 executed steps, treeview.select, ensureRowIsVisible and setFocusThreadPane.

r4dh4l commented 4 years ago

If the current folder is not displayed in the currently set folders view Thunderbird may switch it to another view that displays the folder. Can you check whether the folder was in a collapsed parent folder at the time?

Thx. I can confirm that the view mode changes to default mode if the Archive folder is not expanded when clicking on a tab (which is the case after a fresh start of Thunderbird).

So a warkaround is to expand the archive folder after starting Thunderbird. However: It would be great if the view mode stays the same anyway.

Do you need the error information?

RealRaven2000 commented 4 years ago

Thx. I can confirm that the view mode changes to default mode if the Archive folder is not expanded when clicking on a tab (which is the case after a fresh start of Thunderbird).

So a warkaround is to expand the archive folder after starting Thunderbird. However: It would be great if the view mode stays the same anyway.

Do you need the error information?

Nice one, sounds like you can reproduce it. If I can reproduce it on my side then I won't need that. Probably not going to be happen before Friday though (I have 2 recording days in my Studio).