Skip to content

Commit

Permalink
cahnge name func
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
  • Loading branch information
marinofaggiana committed Oct 7, 2024
1 parent 9f6ad72 commit 346cc44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iOSClient/NCImageCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class NCImageCache: NSObject {

// MARK: - MEDIA -

func createMediaCache(session: NCSession.Session) {
func cachingMedia(session: NCSession.Session) {
var cost: Int = 0

if let metadatas = NCManageDatabase.shared.getResultsMetadatas(predicate: getMediaPredicate(filterLivePhotoFile: true, session: session, showOnlyImages: false, showOnlyVideos: false), sortedByKeyPath: "date", freeze: true)?.prefix(countLimit) {
Expand Down
2 changes: 1 addition & 1 deletion iOSClient/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
DispatchQueue.global(qos: .utility).async {
if NCImageCache.shared.cache.count == 0 {
let session = NCSession.shared.getSession(account: activeTableAccount.account)
NCImageCache.shared.createMediaCache(session: session)
NCImageCache.shared.cachingMedia(session: session)
}
}
}
Expand Down

0 comments on commit 346cc44

Please sign in to comment.