From c1fc0d1ce3da1c48b8322944faf4681765e05555 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 15 Nov 2018 16:25:46 -0800 Subject: [PATCH] Fixes game artwork not refreshing after syncing --- Delta/Game Selection/GameCollectionViewController.swift | 6 +++--- External/Harmony | 2 +- External/Roxas | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Delta/Game Selection/GameCollectionViewController.swift b/Delta/Game Selection/GameCollectionViewController.swift index 4468f17..73431fc 100644 --- a/Delta/Game Selection/GameCollectionViewController.swift +++ b/Delta/Game Selection/GameCollectionViewController.swift @@ -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) } diff --git a/External/Harmony b/External/Harmony index 0b5901b..0925522 160000 --- a/External/Harmony +++ b/External/Harmony @@ -1 +1 @@ -Subproject commit 0b5901b1617724af4e9d16092b2a5e1b1fcd9b29 +Subproject commit 09255222fd823bc9014a54e5625bdd286001f047 diff --git a/External/Roxas b/External/Roxas index c157270..d76e0ee 160000 --- a/External/Roxas +++ b/External/Roxas @@ -1 +1 @@ -Subproject commit c1572706ff7b463ed8ae4686c7bed4bb489fcffa +Subproject commit d76e0eed8bdcf6ab9ee8d2bbfe522159c29116f5