[PR #19149] Remove IconElement caching from PaletteItem #31725

Open
opened 2026-01-31 09:49:09 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/19149

State: closed
Merged: Yes


In #19132, we introduced caching for BasePaletteItem::ResolvedIcon as a late optimization.

We actually can't cache those, because they're UI elements, with parents and relationships and all. When you filter a list with icons and the list elements change physical position, they're assigned new templates-- and new parents.

Fixes e7939bb4e

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19149 **State:** closed **Merged:** Yes --- In #19132, we introduced caching for BasePaletteItem::ResolvedIcon as a late optimization. We actually can't cache those, because they're UI elements, with parents and relationships and all. When you filter a list with icons and the list elements change physical position, they're assigned new templates-- and new parents. Fixes e7939bb4e
claunia added the pull-request label 2026-01-31 09:49:09 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31725