Skip to content

Commit f53bafe

Browse files
Remove upgrade alert (#1320)
Update AppDelegate.swift
1 parent d9db327 commit f53bafe

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

CodeEdit/AppDelegate.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
1818

1919
NSApp.closeWindow(.welcome, .about)
2020

21-
let upgradeAlert = NSAlert()
22-
upgradeAlert.messageText = "Upgrade Available"
23-
upgradeAlert.informativeText = """
24-
A new CodeEdit update is available, but can't be auto-updated.\
25-
Please download the latest version to keep receiving the latest updates.
26-
"""
27-
upgradeAlert.addButton(withTitle: "Download New Version")
28-
switch upgradeAlert.runModal() {
29-
case .alertFirstButtonReturn:
30-
NSWorkspace.shared.open(URL(string: "https://github.com/CodeEditApp/CodeEdit/releases/latest")!)
31-
default:
32-
break
33-
}
34-
3521
DispatchQueue.main.async {
3622
var needToHandleOpen = true
3723

0 commit comments

Comments
 (0)