Skip to content

availableStyles is broken when using styleSheetSource from version >1.1 #39

@gck-ableton

Description

@gck-ableton

The StyleEngine has some legacy code for supporting the old version 1.0 stylePath and styleName properties. When using the styleSheetSource property as a replacement, the availableStyles property is not working anymore.

Looking into the code this is obvious. mStylesDir is only set in setStylePath, but should of course be set from setStyleSheetSource, too. And btw, for the same reason stylePath seems to be equally "broken". styleName() is actually re-implemented in terms of mStyleSheetSourceUrl, but not stylePath.

Whatever. I think it's not worth trying to fix this. We should really drop 1.0-1.2 support soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions