Fixes game artwork not refreshing after syncing
This commit is contained in:
parent
c3301f9384
commit
c1fc0d1ce3
@ -555,14 +555,14 @@ extension GameCollectionViewController: ImportControllerDelegate
|
||||
|
||||
if let imageURL = imageURL
|
||||
{
|
||||
// Remove previous artwork from cache.
|
||||
self.dataSource.prefetchItemCache.removeObject(forKey: game)
|
||||
|
||||
DatabaseManager.shared.performBackgroundTask { (context) in
|
||||
let temporaryGame = context.object(with: game.objectID) as! Game
|
||||
temporaryGame.artworkURL = imageURL
|
||||
context.saveWithErrorLogging()
|
||||
|
||||
// Local image URLs may not change despite being a different image, so manually mark record as updated.
|
||||
SyncManager.shared.recordController.updateRecord(for: temporaryGame)
|
||||
|
||||
DispatchQueue.main.async {
|
||||
self.presentedViewController?.dismiss(animated: true, completion: nil)
|
||||
}
|
||||
|
||||
2
External/Harmony
vendored
2
External/Harmony
vendored
@ -1 +1 @@
|
||||
Subproject commit 0b5901b1617724af4e9d16092b2a5e1b1fcd9b29
|
||||
Subproject commit 09255222fd823bc9014a54e5625bdd286001f047
|
||||
2
External/Roxas
vendored
2
External/Roxas
vendored
@ -1 +1 @@
|
||||
Subproject commit c1572706ff7b463ed8ae4686c7bed4bb489fcffa
|
||||
Subproject commit d76e0eed8bdcf6ab9ee8d2bbfe522159c29116f5
|
||||
Loading…
Reference in New Issue
Block a user