mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Keep the chapter selection when new chapters download after a refresh
This commit is contained in:
@@ -652,6 +652,7 @@ class MangaViewModel(
|
|||||||
downloadManager.startDownloadNow(chapterId)
|
downloadManager.startDownloadNow(chapterId)
|
||||||
} else {
|
} else {
|
||||||
downloadChapters(chapters)
|
downloadChapters(chapters)
|
||||||
|
toggleAllSelection(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isFavorited && !hasPromptedToAddBefore) {
|
if (!isFavorited && !hasPromptedToAddBefore) {
|
||||||
@@ -793,7 +794,6 @@ class MangaViewModel(
|
|||||||
private suspend fun downloadChapters(chapters: List<Chapter>) {
|
private suspend fun downloadChapters(chapters: List<Chapter>) {
|
||||||
val manga = successState?.manga ?: return
|
val manga = successState?.manga ?: return
|
||||||
downloadManager.downloadChapters(manga, chapters)
|
downloadManager.downloadChapters(manga, chapters)
|
||||||
toggleAllSelection(false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user