浏览代码

Category name letter casing change not allowed when renaming (#8274)

* adding the feature

* minor reordering

* Changes from review

* including gradle.properites.swp

* Update app/src/main/java/eu/kanade/domain/category/model/Category.kt

Co-authored-by: AntsyLich <[email protected]>

Co-authored-by: AntsyLich <[email protected]>
d-najd 2 年之前
父节点
当前提交
42bf91779d
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 二进制
      .gradle.properties.swp
  2. 1 1
      app/src/main/java/eu/kanade/domain/category/model/Category.kt

二进制
.gradle.properties.swp


+ 1 - 1
app/src/main/java/eu/kanade/domain/category/model/Category.kt

@@ -18,5 +18,5 @@ data class Category(
 }
 
 internal fun List<Category>.anyWithName(name: String): Boolean {
-    return any { name.equals(it.name, ignoreCase = true) }
+    return any { name == it.name }
 }