Instead cache the created component. Also check its status rather than doing a string comparison on errorString and only call it if it actually failed.
Moreover, initialize AppletAppearnce already with category set.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R119:6ef7ba9520ec: [Desktop Containment] Create AppletAppearance component only once
Still works.
QML Engine has a component cache but still I think calling Qt.createComponent repeatedly (especially since gc will collect it later on when it falls out of scope) should be avoided?
Diff Detail
Diff Detail
- Repository
- R119 Plasma Desktop
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.