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

Fix #2685: Correctly updates favorites on NTP after deletion on iPad. #2688

Merged
merged 1 commit into from
Jul 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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?()
}
}