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

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2021-08-18 14:15:32 -07:00
committed by GitHub
parent 5cc4fb83b3
commit 94f2a1d438

View File

@@ -1139,6 +1139,8 @@ std::string NativeWindowMac::GetRepresentedFilename() {
void NativeWindowMac::SetDocumentEdited(bool edited) {
[window_ setDocumentEdited:edited];
if (buttons_proxy_)
[buttons_proxy_ redraw];
}
bool NativeWindowMac::IsDocumentEdited() {