Use async BrowserWindow::setDocumentEdited