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
fix: explorer restart does not recreated thumbnail toolbar buttons #39551
fix: explorer restart does not recreated thumbnail toolbar buttons #39551
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
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.
Tested with https://gist.github.com/4c883bfd2b1b593894d9dc096b93f0da and confirmed to solve the issue on my Windows machine.
Also confirmed that this approach is used upstream: https://codereview.chromium.org/6289010
Thanks for fixing this!
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "24-x-y", please check out #39585 |
I have automatically backported this PR to "25-x-y", please check out #39586 |
I have automatically backported this PR to "26-x-y", please check out #39587 |
…lectron#39551) fix: explorer restart does not recreated thumbnail toolbar buttons.
…lectron#39551) fix: explorer restart does not recreated thumbnail toolbar buttons.
Description of Change
Problem
When explorer restarted, it didn't regenerate the thumbnail toolbar button, so the button was removed.
Also,
BrowserWindow.setThumbarButtons
prevented adding buttons becauseTaskbarHost.thumbar_buttons_added_
wastrue
.Fixes
Restore thumbnail toolbar buttons when receiving "TaskbarCreated" message in
NativeWindowViews
class.closes #39550
Checklist
npm test
passesRelease Notes
Notes: Fixed to regenerate thumbnail toolbar buttons when explorer is restarted.