From b61a6f8021e713275edf1d33a26885d93644296e Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 10:50:54 +0200 Subject: [PATCH] fix: `setRepresentedFilename` with non-default `titlebarStyle` (#34847) 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 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() {