Skip to content

Commit

Permalink
fix: documentEdited with non-default titlebarStyle (electron#30565)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored and BlackHole1 committed Aug 27, 2021
1 parent 4294c56 commit c134e0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/native_window_mac.mm
Expand Up @@ -1117,6 +1117,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 c134e0d

Please sign in to comment.