Bladeren bron

use .cancel style for cancel button (it is not destructive)

B. Petersen 3 jaren geleden
bovenliggende
commit
e17c13a62d
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      deltachat-ios/Controller/WebxdcViewController.swift

+ 1 - 1
deltachat-ios/Controller/WebxdcViewController.swift

@@ -269,7 +269,7 @@ class WebxdcViewController: WebViewViewController {
                                       message: nil,
                                       preferredStyle: .safeActionSheet)
         let sourceCodeAction = UIAlertAction(title: String.localized("source_code"), style: .default, handler: openUrl(_:))
-        let cancelAction = UIAlertAction(title: String.localized("cancel"), style: .destructive, handler: nil)
+        let cancelAction = UIAlertAction(title: String.localized("cancel"), style: .cancel, handler: nil)
         alert.addAction(sourceCodeAction)
         alert.addAction(cancelAction)
         self.present(alert, animated: true, completion: nil)