Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: setRepresentedFilename with non-default titlebarStyle (elect…
Browse files Browse the repository at this point in the history
…ron#34834)

fix: setRepresentedFilename with non-default titlebarStyle
  • Loading branch information
codebytere authored and khalwa committed Feb 22, 2023
1 parent a12770a commit 5ef0bc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/native_window_mac.mm
Expand Up @@ -1150,6 +1150,8 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {

void NativeWindowMac::SetRepresentedFilename(const std::string& filename) {
[window_ setRepresentedFilename:base::SysUTF8ToNSString(filename)];
if (buttons_proxy_)
[buttons_proxy_ redraw];
}

std::string NativeWindowMac::GetRepresentedFilename() {
Expand Down

0 comments on commit 5ef0bc4

Please sign in to comment.