Skip to content

Commit a2f377d

Browse files
committed
Omit redundant synchronizeWindowTitleWithDocumentName()
1 parent 5fd6f7a commit a2f377d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

CotEditor/Sources/Document Window/DocumentWindowController.swift

-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ final class DocumentWindowController: NSWindowController, NSWindowDelegate {
276276
.sink { [weak self] _ in self?.synchronizeWindowTitleWithDocumentName() }
277277
}
278278

279-
self.synchronizeWindowTitleWithDocumentName()
280-
281279
self.syntaxPopUpButton?.isEnabled = (document is Document)
282280

283281
// observe document's syntax change for toolbar

0 commit comments

Comments
 (0)