From 3008f615c1a438c153785b1ed9a70c77231e1483 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 5aca88b44ebe8..1e6d989a1aa54 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() {