mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fixes #3910
UITableViewAlertForLayoutOutsideViewHierarchy will no longer fire as a check has been added to make sure that the tableView’s window property is not nil before performing batch updates.
This commit is contained in:
@@ -564,6 +564,8 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner, Ma
|
||||
return
|
||||
}
|
||||
|
||||
if tableView.window == nil { return }
|
||||
|
||||
tableView.performBatchUpdates {
|
||||
if let deletes = changes.deletes, !deletes.isEmpty {
|
||||
tableView.deleteSections(IndexSet(deletes), with: .middle)
|
||||
|
||||
Reference in New Issue
Block a user