Skip to content

fix: setRepresentedFilename with non-default titlebarStyle - #34834

Merged
MarshallOfSound merged 1 commit into
mainfrom
fix-rep-filename
Jul 8, 2022
Merged

fix: setRepresentedFilename with non-default titlebarStyle#34834
MarshallOfSound merged 1 commit into
mainfrom
fix-rep-filename

Conversation

@codebytere

Copy link
Copy Markdown
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 recently 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

release-clerk Bot commented Jul 8, 2022

Copy link
Copy Markdown

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

trop Bot commented Jul 8, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jul 8, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jul 8, 2022

Copy link
Copy Markdown
Contributor

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 recently 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