Skip to content

Commit

Permalink
allow pasting qr-codes without selecting 'scan' (#2115)
Browse files Browse the repository at this point in the history
i have seen it several times where ppl want to paste a qr code
and were searching for the opion;
it seems superfluous - and one tap more - if one is force to select 'scan' before.
  • Loading branch information
r10s authored Mar 22, 2024
1 parent 59b9de4 commit e9f58b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deltachat-ios/Controller/QrPageController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ class QrPageController: UIPageViewController {
alert.addAction(UIAlertAction(title: String.localized("menu_share"), style: .default, handler: share(_:)))
alert.addAction(UIAlertAction(title: String.localized("menu_copy_to_clipboard"), style: .default, handler: copyToClipboard(_:)))
alert.addAction(UIAlertAction(title: String.localized("withdraw_qr_code"), style: .default, handler: withdrawQrCode(_:)))
} else {
alert.addAction(UIAlertAction(title: String.localized("paste_from_clipboard"), style: .default, handler: pasteFromClipboard(_:)))
}
alert.addAction(UIAlertAction(title: String.localized("paste_from_clipboard"), style: .default, handler: pasteFromClipboard(_:)))
alert.addAction(UIAlertAction(title: String.localized("cancel"), style: .cancel, handler: nil))
self.present(alert, animated: true, completion: nil)
}
Expand Down

0 comments on commit e9f58b1

Please sign in to comment.