Remove the updater.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user