From caa1fafa4216f1a885aff15df3c52ccdd707aebc Mon Sep 17 00:00:00 2001 From: Christoffer Winterkvist Date: Wed, 26 Dec 2018 19:39:06 +0100 Subject: [PATCH] Remove setting the frame By removing this line, the application will remember the last size that the user had. It makes sense to not reset the size now that the window accepts resizing. --- Sources/Application/AppDelegate.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/Application/AppDelegate.swift b/Sources/Application/AppDelegate.swift index 1ea9170..72643b7 100644 --- a/Sources/Application/AppDelegate.swift +++ b/Sources/Application/AppDelegate.swift @@ -56,7 +56,6 @@ class AppDelegate: NSObject, NSApplicationDelegate { window.minSize = windowSize window.resizeIncrements = .init(width: 120 + 10, height: 1) - window.setFrame(NSRect.init(origin: window.frame.origin, size: windowSize), display: true) window.makeKeyAndOrderFront(nil) self.window = window self.toolbar = toolbar