From dd62a3325ad714c8e8e7e12b0da95b3c4e355258 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 23 Aug 2019 18:30:28 -0700 Subject: [PATCH] Center the main window on first run. --- Mac/AppDelegate.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 3c1dd932c..53a823fcb 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -146,6 +146,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, updateSortMenuItems() createAndShowMainWindow() + if isFirstRun { + mainWindowController?.window?.center() + } NotificationCenter.default.addObserver(self, selector: #selector(feedSettingDidChange(_:)), name: .FeedSettingDidChange, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(userDefaultsDidChange(_:)), name: UserDefaults.didChangeNotification, object: nil)