Revert "Bugfix: prevent crashing when opening second document"

This commit is contained in:
Anna Scholtz 2018-09-28 14:15:39 -07:00 committed by GitHub
parent 8ffb51aa8f
commit 55d1468aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,10 +77,10 @@ class Document: NSDocument {
windowController.window?.minSize = Document.minWinSize
self.editViewController = windowController.contentViewController as? EditViewController
editViewController?.document = self
if let config = (NSApplication.shared.delegate as? AppDelegate)?.configCache {
editViewController?.configChanged(changes: config)
}
editViewController?.document = self
windowController.window?.delegate = editViewController
self.addWindowController(windowController)
}