From ec13a0b0e61d6c4efc3232821a733e7f438c6f1c Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 18 Aug 2021 21:09:57 +0200 Subject: [PATCH] fix: documentEdited with non-default titlebarStyle (#30565) --- 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 67565ab5cffb..2c0513ff0487 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -1117,6 +1117,8 @@ std::string NativeWindowMac::GetRepresentedFilename() { void NativeWindowMac::SetDocumentEdited(bool edited) { [window_ setDocumentEdited:edited]; + if (buttons_proxy_) + [buttons_proxy_ redraw]; } bool NativeWindowMac::IsDocumentEdited() {