mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Decrement the static row count instead of using hard-coded values
This commit is contained in:
@@ -126,11 +126,12 @@ class AddFeedViewController: UITableViewController, AddContainerViewControllerCh
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||
if section == 1 {
|
||||
return shouldDisplayPicker ? 2 : 1
|
||||
let defaultNumberOfRows = super.tableView(tableView, numberOfRowsInSection: section)
|
||||
if section == 1 && !shouldDisplayPicker {
|
||||
return defaultNumberOfRows - 1
|
||||
}
|
||||
|
||||
return super.tableView(tableView, numberOfRowsInSection: section)
|
||||
return defaultNumberOfRows
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user