Skip to content

Commit

Permalink
- use weak self inside UIAction
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schwarz committed Jul 16, 2024
1 parent d8f71ca commit ab03572
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ownCloud/Client/HelpAndSupportViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ class HelpAndSupportViewController: CollectionViewController {
.text("If you don't need a response and just want to send us feedback, you can also send us a mail.".localized, style: .informal, cssSelectors: [.message]),
.spacing(5),

.button("Send feedback".localized, action: UIAction(handler: { _ in
VendorServices.shared.sendFeedback(from: self)
.button("Send feedback".localized, action: UIAction(handler: { [weak self] _ in
if let self {
VendorServices.shared.sendFeedback(from: self)
}
}), image: nil, cssSelectors: [ .info ], insets: .zero)
])
}
Expand Down

0 comments on commit ab03572

Please sign in to comment.