浏览代码

MediaLibraryService: Migration: Update didMigrate value

By caching it on the start on the medialibrary, we need to update
the value when successfully migrated, else it will continue to migrate
on each new media parsing.
Soomin Lee 6 年之前
父节点
当前提交
a1742d836b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      SharedSources/MediaLibraryService.swift

+ 1 - 0
SharedSources/MediaLibraryService.swift

@@ -233,6 +233,7 @@ private extension MediaLibraryService {
 
         if migrateMedia(oldMedialibrary) && migratePlaylists(oldMedialibrary) {
             UserDefaults.standard.set(true, forKey: MediaLibraryService.migrationKey)
+            didMigrate = true
             return true
         }
         return false