This commit is contained in:
2025-03-07 16:54:08 -08:00
parent d31763e66f
commit c846fc5a15
11 changed files with 136 additions and 287 deletions

View File

@@ -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