From c6221af766efba1a0788c78b1918c86d3567b213 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 7 Jul 2022 11:21:27 +0200 Subject: [PATCH] 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() {