Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #2681: 'Show more' button not displaying on iPads. (#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub authored Jul 2, 2020
1 parent 6d19762 commit c92af21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class FavoritesOverflowSectionProvider: NSObject, NTPObservableSectionProvider {
init(action: @escaping () -> Void) {
self.action = action
frc = Bookmark.frc(forFavorites: true, parentFolder: nil)
frc.fetchRequest.fetchLimit = 6
frc.fetchRequest.fetchLimit = 10
super.init()
try? frc.performFetch()
frc.delegate = self
Expand Down Expand Up @@ -106,6 +106,7 @@ class FavoritesOverflowSectionProvider: NSObject, NTPObservableSectionProvider {

extension FavoritesOverflowSectionProvider: NSFetchedResultsControllerDelegate {
func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) {
try? frc.performFetch()
sectionDidChange?()
}
}

0 comments on commit c92af21

Please sign in to comment.