Skip to content

Commit

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

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Jul 8, 2022
1 parent b390336 commit b61a6f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/native_window_mac.mm
Expand Up @@ -1164,6 +1164,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 b61a6f8

Please sign in to comment.