mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
Revert "Don't rename folder if it's only a case change"
This reverts commit df7aaf633a
.
This commit is contained in:
parent
df7aaf633a
commit
f0b0d3d197
@ -13,7 +13,6 @@ import eu.kanade.tachiyomi.source.Source
|
||||
import eu.kanade.tachiyomi.source.SourceManager
|
||||
import eu.kanade.tachiyomi.util.storage.DiskUtil
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import java.util.Locale
|
||||
|
||||
/**
|
||||
* This class is used to provide the directories where the downloads should be saved.
|
||||
@ -130,7 +129,6 @@ class DownloadProvider(private val context: Context) {
|
||||
}
|
||||
|
||||
fun renameMangaFolder(from: String, to: String, sourceId: Long) {
|
||||
if (from.toLowerCase(Locale.getDefault()) == to.toLowerCase(Locale.getDefault())) return
|
||||
val sourceManager by injectLazy<SourceManager>()
|
||||
val source = sourceManager.get(sourceId) ?: return
|
||||
val sourceDir = findSourceDir(source)
|
||||
|
Loading…
Reference in New Issue
Block a user