Install Apple event handlers early enough so that the app can be launched by a feed: URL and it will pop up the sheet. Fix #343.

This commit is contained in:
Brent Simmons 2018-11-26 19:22:05 -08:00
parent c754210e7a
commit 6416cb6bf2

View File

@ -117,6 +117,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
// MARK: - NSApplicationDelegate
func applicationWillFinishLaunching(_ notification: Notification) {
installAppleEventHandlers()
}
func applicationDidFinishLaunching(_ note: Notification) {
appName = (Bundle.main.infoDictionary!["CFBundleExecutable"]! as! String)