Remove the updater.

This commit is contained in:
2025-09-16 11:29:01 -07:00
parent 2cfd2e00b0
commit c2500afe50
28 changed files with 22 additions and 6846 deletions

View File

@@ -4,12 +4,10 @@ import ServiceManagement
class AppDelegate: NSObject, NSApplicationDelegate {
// MARK: - State
private var aboutWindow: MenulessWindow!
private var updateWindow: MenulessWindow!
// MARK: - Lifecycle
func applicationDidFinishLaunching(_ notification: Notification) {
setupAboutWindow()
setupUpdateWindow()
setupNotifications()
CmdManager.standard.configure()
@@ -43,26 +41,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
}
@objc func checkForUpdates() {
NSApplication.shared.activate(ignoringOtherApps: true)
updateWindow.makeKeyAndOrderFront(nil)
}
// MARK: - Setup About Window
private func setupAboutWindow() {
aboutWindow = MenulessWindow(viewController: AboutViewController())
aboutWindow.level = .statusBar
}
private func setupUpdateWindow() {
let controller = UpdateViewController()
controller.setUpdateDelegate()
updateWindow = MenulessWindow(viewController: controller)
updateWindow.title = "Software Update"
updateWindow.level = .statusBar
}
// MARK: - Show About Window
@objc func showAbout() {
NSApplication.shared.activate(ignoringOtherApps: true)