Skip to content

Commit

Permalink
Center the main window on first run.
Browse files Browse the repository at this point in the history
  • Loading branch information
brentsimmons committed Aug 24, 2019
1 parent 4bead42 commit dd62a33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Mac/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dd62a33

Please sign in to comment.