Skip to content

Commit

Permalink
fix: setRepresentedFilename with non-default titlebarStyle (#34834)
Browse files Browse the repository at this point in the history
fix: setRepresentedFilename with non-default titlebarStyle
  • Loading branch information
codebytere committed Jul 8, 2022
1 parent e83c3ec commit 1941c88
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 1941c88

Please sign in to comment.