mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-16 18:23:53 +01:00
Fixes Error Log showing UIAlertController on iOS 14 or later
A context menu should appear instead on iOS 14 or later.
This commit is contained in:
@@ -122,6 +122,8 @@ private extension ErrorLogViewController
|
|||||||
{
|
{
|
||||||
cell.menuButton.showsMenuAsPrimaryAction = true
|
cell.menuButton.showsMenuAsPrimaryAction = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cell.selectionStyle = .none
|
||||||
}
|
}
|
||||||
|
|
||||||
// Include errorDescriptionTextView's text in cell summary.
|
// Include errorDescriptionTextView's text in cell summary.
|
||||||
@@ -269,6 +271,8 @@ extension ErrorLogViewController
|
|||||||
{
|
{
|
||||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
|
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
|
||||||
{
|
{
|
||||||
|
guard #unavailable(iOS 14) else { return }
|
||||||
|
|
||||||
let loggedError = self.dataSource.item(at: indexPath)
|
let loggedError = self.dataSource.item(at: indexPath)
|
||||||
|
|
||||||
let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
|
let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
|
||||||
|
|||||||
Reference in New Issue
Block a user