mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
MangaScreen: Fix action mode download button not working (#7385)
This commit is contained in:
parent
9ff6ae81bd
commit
924dfa19cf
2 changed files with 2 additions and 2 deletions
|
@ -338,7 +338,7 @@ private fun MangaScreenSmallImpl(
|
||||||
selected.clear()
|
selected.clear()
|
||||||
}.takeIf { selected.size == 1 },
|
}.takeIf { selected.size == 1 },
|
||||||
onDownloadClicked = {
|
onDownloadClicked = {
|
||||||
onDownloadChapter!!(selected, ChapterDownloadAction.START)
|
onDownloadChapter!!(selected.toList(), ChapterDownloadAction.START)
|
||||||
selected.clear()
|
selected.clear()
|
||||||
}.takeIf {
|
}.takeIf {
|
||||||
onDownloadChapter != null && selected.any { it.downloadState != Download.State.DOWNLOADED }
|
onDownloadChapter != null && selected.any { it.downloadState != Download.State.DOWNLOADED }
|
||||||
|
|
|
@ -380,7 +380,7 @@ class MangaController :
|
||||||
// SELECTION MODE ACTIONS
|
// SELECTION MODE ACTIONS
|
||||||
|
|
||||||
private fun onDownloadChapters(
|
private fun onDownloadChapters(
|
||||||
items: List<eu.kanade.tachiyomi.ui.manga.ChapterItem>,
|
items: List<ChapterItem>,
|
||||||
action: ChapterDownloadAction,
|
action: ChapterDownloadAction,
|
||||||
) {
|
) {
|
||||||
viewScope.launch {
|
viewScope.launch {
|
||||||
|
|
Loading…
Reference in a new issue