Skip to content

Commit

Permalink
Give "Complete" status only to fully completed Manga
Browse files Browse the repository at this point in the history
Up until now a progress of >= 99.5% would count a Manga as completed (and show the checkmark icon). This causes manga with 200 chapters or more to be marked as completed even if they have at least one unread chapter.

KotatsuApp#1105
  • Loading branch information
MariusAlbrecht authored Oct 15, 2024
1 parent b810639 commit a9d3fae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ data class ReadingProgress(
companion object {

const val PROGRESS_NONE = -1f
const val PROGRESS_COMPLETED = 0.995f
const val PROGRESS_COMPLETED = 1f

fun isValid(percent: Float) = percent in 0f..1f

Expand Down

0 comments on commit a9d3fae

Please sign in to comment.