From b1b44e0469375c1d1b656637d913cdc5afb2d813 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 10:50:57 +0200 Subject: [PATCH] fix: `setRepresentedFilename` with non-default `titlebarStyle` (#34848) fix: setRepresentedFilename with non-default titlebarStyle Co-authored-by: Shelley Vohr --- shell/browser/native_window_mac.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index 39c556d397cf6..a740aa263b327 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -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() {