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:
@@ -64,11 +64,12 @@ class AddFolderViewController: UITableViewController, AddContainerViewController
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||
let defaultNumberOfRows = super.tableView(tableView, numberOfRowsInSection: section)
|
||||
if section == 1 && !shouldDisplayPicker {
|
||||
return 1
|
||||
return defaultNumberOfRows - 1
|
||||
}
|
||||
|
||||
return super.tableView(tableView, numberOfRowsInSection: section)
|
||||
return defaultNumberOfRows
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user