Skip to content

Thunderbird 102 - folder tree icons do not work independently of tabs #280

Description

@RealRaven2000

User-defined Icons that are defined for a folder in the tree without a matching Folder tab are not retrieved / displayed anymore - at least in large profiles converted from older versions of Thunderbird. We may also see many warnings of exceptions caught in folder tree, similar to this:

QuickFolders.FolderTree.getCellPropertiesQuickFolders.FolderTree.getCellProperties(14,[object TreeColumn])
  returning unchanged props for folder [nstmp] : 
Component returned failure code: 0x80550007 [nsIMsgFolder.getStringProperty]

which may be a side effect of invalid icons (to be investigated). With many messages like this, performance may be impacted adversely.

It looks like we will need to store custom icon settings externally (so far I managed to store them in the folders themselves by monkey-patching the function gFolderTreeView.getCellProperties - if we store icon definitions in QuickFolders extension storage (which gets stored in prefs.js) it will be necessary to redefine all icons for (non-tab) folders that are not declared via a dedicated QuickFolders tab.

Activity

  1. self-assigned this
    on Jul 2, 2022
  2. RealRaven2000 commented on Jul 2, 2022

    @RealRaven2000
    OwnerAuthor

    In order to make testing a little easier and improve performance + signal-to-noise ratio in the error log, here is a version of QuickFolders that omits the message (the error is still thrown, but it happens "quietly":

    QuickFolders-mx-5.10.1pre7.zip

    To install this version, download the zip file and drag into Thunderbird Add-ons Manager.

  3. added a commit that references this issue on Jul 17, 2022
  4. RealRaven2000 commented on Jul 17, 2022

    @RealRaven2000
    OwnerAuthor

    Fixes most issues for icons in folder tree:

    QuickFolders-mx-5.11pre85.zip

    Known issues: when moving a folder, it loses it's icon assignment.

    To install this version, download the zip file and drag into Thunderbird Add-ons Manager.

  5. RealRaven2000 commented on Jul 23, 2022

    @RealRaven2000
    OwnerAuthor

    I removed an unnecessary call to the function repairTreeIcons() on startup to save on processing time in Thunderbird 102 - this will also have additional effects for issue #283.

  6. RealRaven2000 commented on Jul 23, 2022

    @RealRaven2000
    OwnerAuthor

    Fixed in 5.11 - Published 23/07/2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions