Cleanup.
This commit is contained in:
@@ -3,7 +3,7 @@ import ServiceManagement
|
||||
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
// MARK: - State
|
||||
private var aboutWindow: MenulessWindow!
|
||||
private var aboutWindow: MenulessWindow!
|
||||
private var updateWindow: MenulessWindow!
|
||||
|
||||
// MARK: - Lifecycle
|
||||
@@ -22,11 +22,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
// MARK: - Notifications
|
||||
private func setupNotifications() {
|
||||
NSWorkspace.shared.notificationCenter.addObserver(
|
||||
self,
|
||||
selector: #selector(wakeUp),
|
||||
name: NSWorkspace.didWakeNotification,
|
||||
object: nil)
|
||||
NSWorkspace.shared.notificationCenter.addObserver(self, selector: #selector(wakeUp), name: NSWorkspace.didWakeNotification, object: nil)
|
||||
}
|
||||
|
||||
@objc private func wakeUp() {
|
||||
@@ -47,7 +43,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
@objc func checkForUpdates() {
|
||||
NSApplication.shared.activate(ignoringOtherApps: true)
|
||||
updateWindow.makeKeyAndOrderFront(nil)
|
||||
updateWindow.center()
|
||||
}
|
||||
|
||||
// MARK: - Setup About Window
|
||||
|
||||
Reference in New Issue
Block a user