Set the windows size after the contentViewController.

This commit is contained in:
Damiano Galassi committed 2018-02-17 10:47:30 +01:00
1 parent 66f4575ffc
commit 4710639af8
1 file changed
+3
+3
View File
@@ -50,6 +50,9 @@ class DocumentWindowController: NSWindowController, TracksViewControllerDelegate
sendToQueue.image = NSImage(named: NSImage.Name(rawValue: "NSShareTemplate"));
window.contentViewController = splitViewController
window.registerForDraggedTypes([NSPasteboard.PasteboardType.backwardsCompatibleFileURL])
if UserDefaults.standard.bool(forKey: "rememberWindowSize") {
window.setFrameAutosaveName(NSWindow.FrameAutosaveName(rawValue: "documentSave"))
window.setFrameFrom("documentSave")