浏览代码

Fix crash when adding if there are more then 1 dupe (#7405)

AntsyLich 2 年之前
父节点
当前提交
0969226fd3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/src/main/sqldelight/data/mangas.sq

+ 2 - 1
app/src/main/sqldelight/data/mangas.sq

@@ -63,7 +63,8 @@ SELECT *
 FROM mangas
 WHERE favorite = 1
 AND LOWER(title) = :title
-AND source != :source;
+AND source != :source
+LIMIT 1;
 
 resetViewerFlags:
 UPDATE mangas