Skip to content

Commit

Permalink
weak self to prevent retain cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Oct 4, 2024
1 parent 47a9c9c commit d3184ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ internal final class AdvancedViewController: UITableViewController {
self.present(alert, animated: true, completion: nil)
}))

alert.addAction(UIAlertAction(title: String.localized("learn_more"), style: .default, handler: { _ in
alert.addAction(UIAlertAction(title: String.localized("learn_more"), style: .default, handler: { [weak self] _ in
guard let self else { return }
self.navigationController?.pushViewController(HelpViewController(dcContext: self.dcContext, fragment: "#importkey"), animated: true)
}))

Expand Down

0 comments on commit d3184ff

Please sign in to comment.