mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	@@ -416,6 +416,11 @@ object Migrations {
 | 
			
		||||
                    newKey = { Preference.appStateKey(it) },
 | 
			
		||||
                )
 | 
			
		||||
            }
 | 
			
		||||
            if (oldVersion < 111) {
 | 
			
		||||
                File(context.cacheDir, "dl_index_cache")
 | 
			
		||||
                    .takeIf { it.exists() }
 | 
			
		||||
                    ?.delete()
 | 
			
		||||
            }
 | 
			
		||||
            return true
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -94,7 +94,7 @@ class DownloadCache(
 | 
			
		||||
        .stateIn(scope, SharingStarted.WhileSubscribed(), false)
 | 
			
		||||
 | 
			
		||||
    private val diskCacheFile: File
 | 
			
		||||
        get() = File(context.cacheDir, "dl_index_cache")
 | 
			
		||||
        get() = File(context.cacheDir, "dl_index_cache_v2")
 | 
			
		||||
 | 
			
		||||
    private val rootDownloadsDirLock = Mutex()
 | 
			
		||||
    private var rootDownloadsDir = RootDirectory(provider.downloadsDir)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user