-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Only update the icon of a tab it the icon actually _changed_ #2376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I still approve of this, but I want to understand why there's two copies of code from GetIconFromProfile (one in Tab, one in App)
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
} | ||
|
||
_tabViewItem.Icon(elem); | ||
_tabViewItem.Icon(GetColoredIcon(_lastIconPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one lost its exception handler.. It also no longer checks whether the path was empty. Does this work right for transitioning from "an icon" to "no icon"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exception handler went up into GetColoredIcon, but I'll double check the icon->null path
How does this fix #2339? |
@DHowett-MSFT that was a typo, definitely meant #2329 |
In that case, we can remove the exception handler around the otehr call. Do we need |
It's baa~ack!
|
🎉 Handy links: |
Can confirm that #2329 is still broken in v0.5.2681.0 Simple Replication::
3.) Save |
Summary of the Pull Request
Only update the icon of a tab it the icon actually changed. The way we have it, we'll try and update the icon everytime focus changes, causing the tab icon to blink for a second, even when switching between two panes with the same profile.
References
While I was here, I also fixed #2329, I think accidentally. But that's cool!
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed