Explorar o código

mark 'delete account' as destructive

B. Petersen %!s(int64=4) %!d(string=hai) anos
pai
achega
e79ac4de9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/Controller/SettingsController.swift

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

@@ -500,7 +500,7 @@ internal final class SettingsViewController: UITableViewController, ProgressAler
         }))
 
         // delete account
-        menu.addAction(UIAlertAction(title: String.localized("delete_account"), style: .default, handler: { [weak self] _ in
+        menu.addAction(UIAlertAction(title: String.localized("delete_account"), style: .destructive, handler: { [weak self] _ in
             let confirm1 = UIAlertController(title: String.localized("delete_account_ask"), message: nil, preferredStyle: .safeActionSheet)
             confirm1.addAction(UIAlertAction(title: String.localized("delete_account"), style: .destructive, handler: { [weak self] _ in
                 guard let self = self else { return }