Remove license and update about window.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user