From 5ef0bc4c9859812a3c1993dedd9c7d2810ce7a49 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Fri, 8 Jul 2022 08:33:42 +0200 Subject: [PATCH] fix: `setRepresentedFilename` with non-default `titlebarStyle` (#34834) fix: setRepresentedFilename with non-default titlebarStyle --- 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 3e5ee77010281..721ed09c47e92 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -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() {