Skip to content

Commit

Permalink
fix: documentEdited with non-default titlebarStyle (#30604)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Aug 18, 2021
1 parent 766a58e commit b444944
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/native_window_mac.mm
Expand Up @@ -1140,6 +1140,8 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {

void NativeWindowMac::SetDocumentEdited(bool edited) {
[window_ setDocumentEdited:edited];
if (buttons_proxy_)
[buttons_proxy_ redraw];
}

bool NativeWindowMac::IsDocumentEdited() {
Expand Down

0 comments on commit b444944

Please sign in to comment.