Remove license and update about window.

This commit is contained in:
2025-01-15 17:11:18 -08:00
parent e1146840f6
commit d31763e66f
5 changed files with 115 additions and 377 deletions

View File

@@ -11,28 +11,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
setupAboutWindow()
setupUpdateWindow()
setupNotifications()
setupLicense()
CmdManager.standard.configure()
}
private func setupLicense() {
let licenseManager = LicenseManager.standard
if !licenseManager.isRegistered() {
showAbout()
licenseManager.clearLicense()
licenseManager.startTimer()
}
}
private func setupUpdateWindow() {
let controller = UpdateViewController()
controller.setUpdateDelegate()
updateWindow = MenulessWindow(viewController: controller)
updateWindow.title = "Software Update"
}
func applicationWillTerminate(_ notification: Notification) {
persistMenuBar(false)
@@ -72,6 +53,16 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// 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