AppDelegate // Mark the uninstall action button with red color.
This commit is contained in:
parent
a62d684e2f
commit
a3310be0e3
|
@ -105,6 +105,11 @@ extension AppDelegate {
|
||||||
alert.messageText = NSLocalizedString("Uninstallation", comment: "")
|
alert.messageText = NSLocalizedString("Uninstallation", comment: "")
|
||||||
alert.informativeText = content
|
alert.informativeText = content
|
||||||
alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
|
alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
|
||||||
|
if #available(macOS 11, *) {
|
||||||
|
alert.buttons.forEach { button in
|
||||||
|
button.hasDestructiveAction = true
|
||||||
|
}
|
||||||
|
}
|
||||||
alert.addButton(withTitle: NSLocalizedString("Not Now", comment: ""))
|
alert.addButton(withTitle: NSLocalizedString("Not Now", comment: ""))
|
||||||
let result = alert.runModal()
|
let result = alert.runModal()
|
||||||
NSApp.activate(ignoringOtherApps: true)
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
|
|
Loading…
Reference in New Issue