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

Commit

Permalink
Fix #2685: Correctly updates favorites on NTP after deletion on iPad. (
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub authored Jul 2, 2020
1 parent c92af21 commit 4d9a1c2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FavoritesSectionProvider: NSObject, NTPObservableSectionProvider {

frc = Bookmark.frc(forFavorites: true, parentFolder: nil)
super.init()
frc.fetchRequest.fetchLimit = 6
frc.fetchRequest.fetchLimit = 10
frc.delegate = self

do {
Expand Down Expand Up @@ -212,6 +212,7 @@ class FavoritesSectionProvider: NSObject, NTPObservableSectionProvider {

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

0 comments on commit 4d9a1c2

Please sign in to comment.