Skip to content
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: setRepresentedFilename with non-default titlebarStyle #34834

Merged
merged 1 commit into from Jul 8, 2022

Conversation

codebytere
Copy link
Member

Description of Change

Closes #34822.

Fixes an issue where calling BrowserWindow.setRepresentedFilename on macOS with titlebarStyle: 'hiddenInset' or titlebarStyle: 'hidden' inadvertently moves the traffic light location. Fix this by ensuring the traffic lights are redrawn according to the current titleBarStyle when representedFilename value is changed.

Tested with https://gist.github.com/9ad043673ca425c92bbb4e1f951c455c

Checklist

Release Notes

Notes: Fixed an issue where calling BrowserWindow.setRepresentedFilename on macOS with titlebarStyle: 'hiddenInset' or titlebarStyle: 'hidden' inadvertently moves the traffic light location.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/18-x-y labels Jul 7, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 7, 2022
@codebytere codebytere changed the title fix: setRepresentedFilename with non-default titlebarStyle fix: setRepresentedFilename with non-default titlebarStyle Jul 7, 2022
@MarshallOfSound MarshallOfSound merged commit 1941c88 into main Jul 8, 2022
@MarshallOfSound MarshallOfSound deleted the fix-rep-filename branch July 8, 2022 06:33
@release-clerk
Copy link

release-clerk bot commented Jul 8, 2022

Release Notes Persisted

Fixed an issue where calling BrowserWindow.setRepresentedFilename on macOS with titlebarStyle: 'hiddenInset' or titlebarStyle: 'hidden' inadvertently moves the traffic light location.

@trop
Copy link
Contributor

trop bot commented Jul 8, 2022

I have automatically backported this PR to "18-x-y", please check out #34847

@trop
Copy link
Contributor

trop bot commented Jul 8, 2022

I have automatically backported this PR to "19-x-y", please check out #34848

@trop
Copy link
Contributor

trop bot commented Jul 8, 2022

I have automatically backported this PR to "20-x-y", please check out #34849

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 11, 2022
schetle pushed a commit to schetle/electron that referenced this pull request Nov 3, 2022
…ron#34834)

fix: setRepresentedFilename with non-default titlebarStyle
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
…ron#34834)

fix: setRepresentedFilename with non-default titlebarStyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: setTrafficLightPosition is reset when calling setRepresentedFilename
3 participants