Skip to content

Commit

Permalink
Use proper cancel button as discussed (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Jan 17, 2025
1 parent 8289173 commit 88599e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deltachat-ios/Chat/AppPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ protocol AppPickerViewControllerDelegate: AnyObject {
}

class AppPickerViewController: UIViewController {
// Web view
// Context
weak var delegate: AppPickerViewControllerDelegate?
let webView: WKWebView
var defaultCloseButton: UIBarButtonItem?
Expand All @@ -29,7 +27,7 @@ class AppPickerViewController: UIViewController {
view.addSubview(downloadingView)
view.backgroundColor = .systemBackground
setupConstraints()
let closeButton = UIBarButtonItem(image: UIImage(systemName: "xmark"), style: .plain, target: self, action: #selector(AppPickerViewController.close(_:)))
let closeButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonItem.SystemItem.cancel, target: self, action: #selector(AppPickerViewController.close(_:)))

title = String.localized("webxdc_apps")
navigationItem.leftBarButtonItem = closeButton
Expand Down

0 comments on commit 88599e6

Please sign in to comment.