Skip to content

Commit

Permalink
fix: documentEdited with non-default titlebarStyle (#30605)
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 5cc4fb8 commit 94f2a1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/native_window_mac.mm
Expand Up @@ -1139,6 +1139,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 94f2a1d

Please sign in to comment.