Skip to content

Lazy load disabled icons in AbstractContributionItem #2987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HeikoKlare
Copy link
Contributor

AbstractionContributionItems load their disabled icons even if the icon's widget is not disabled. This unnecessarily occupies resources that may never be used.

This change updates the implementation to lazily load or create the disabled icon once the element is actually disabled for the first time.

This is a follow-up on:

I propose to postpone this to M1 as it's only a slight improvement of long-standing behavior, so no need to risk any regression.

AbstractionContributionItems load their disabled icons even if the
icon's widget is not disabled. This unnecessarily occupies resources
that may never be used.

This change updates the implementation to lazily load or create the
disabled icon once the element is actually disabled for the first time.
Copy link
Contributor

Test Results

 1 824 files   1 824 suites   1h 39m 53s ⏱️
 7 925 tests  7 697 ✅ 228 💤 0 ❌
23 862 runs  23 114 ✅ 748 💤 0 ❌

Results for commit 3c1e07b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant