[Folder View] Load icon only for isPopup case
Needs RevisionPublic

Authored by broulik on Mon, Sep 2, 12:34 PM.

Details

Reviewers
hein
Group Reviewers
Plasma
Summary

There's no point in loading the icon when it cannot be seen.

Test Plan

5.16?
No longer have desktop containment query the icon name of the root item
Panel icon still shows proper icon and updates live

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Mon, Sep 2, 12:34 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMon, Sep 2, 12:34 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Mon, Sep 2, 12:34 PM
broulik edited the test plan for this revision. (Show Details)
hein requested changes to this revision.Wed, Sep 4, 12:09 AM

Hmm, I'm not a fan. That only the isPopup case ends up showing the icon in the shell is something you and I know from the outside, but I don't think a widget should be making that assumption. Otherwise we bake implementation details of the containents into widget code, and if we ever change the former we have to fix the widgets. Take for example a widget list like the one bandied about for config modes on the sprint.

This revision now requires changes to proceed.Wed, Sep 4, 12:09 AM