Browse Source
* test: verify ShowCore applies default icon when no custom icon is set Adds a test that verifies Window.Show() applies the default icon via SetIcon when no custom icon has been set. Currently fails because ShowCore has no default icon logic — the fallback only exists in the constructor binding where it eagerly loads the icon. Relates to #20478 * fix: defer default icon loading from constructor to ShowCore The default icon was eagerly loaded during Window construction via CreatePlatformImplBinding, even when a custom icon would be set or no icon was needed. This caused unnecessary I/O (assembly resource loading) on every first Window instantiation. Move the default icon fallback from the binding lambda to ShowCore, so LoadDefaultIcon only runs when the window is actually shown and no custom icon has been set. Fixes #20478pull/17825/merge
committed by
GitHub
4 changed files with 39 additions and 2 deletions
Loading…
Reference in new issue