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

Open
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.

Copy link
Contributor

github-actions bot commented May 15, 2025

Test Results

 1 824 files  ±0   1 824 suites  ±0   1h 35m 50s ⏱️ - 3m 26s
 7 925 tests ±0   7 697 ✅ ±0  228 💤 ±0  0 ❌ ±0 
23 862 runs  ±0  23 114 ✅ ±0  748 💤 ±0  0 ❌ ±0 

Results for commit 889ff7d. ± Comparison against base commit c741652.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare added this to the 4.37 M1 milestone May 20, 2025
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.
@HeikoKlare HeikoKlare force-pushed the abstractcontributionitem-disabledlazy branch from 3a5670a to 889ff7d Compare May 20, 2025 08:33
@HeikoKlare HeikoKlare marked this pull request as ready for review May 20, 2025 08:33
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