Browse Source

fix: documentEdited with non-default titlebarStyle (#30565)

Shelley Vohr 3 years ago
parent
commit
ec13a0b0e6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      shell/browser/native_window_mac.mm

+ 2 - 0
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() {