mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	MangaScreen: Fix action mode download button not working (#7385)
This commit is contained in:
		@@ -338,7 +338,7 @@ private fun MangaScreenSmallImpl(
 | 
			
		||||
                        selected.clear()
 | 
			
		||||
                    }.takeIf { selected.size == 1 },
 | 
			
		||||
                    onDownloadClicked = {
 | 
			
		||||
                        onDownloadChapter!!(selected, ChapterDownloadAction.START)
 | 
			
		||||
                        onDownloadChapter!!(selected.toList(), ChapterDownloadAction.START)
 | 
			
		||||
                        selected.clear()
 | 
			
		||||
                    }.takeIf {
 | 
			
		||||
                        onDownloadChapter != null && selected.any { it.downloadState != Download.State.DOWNLOADED }
 | 
			
		||||
 
 | 
			
		||||
@@ -380,7 +380,7 @@ class MangaController :
 | 
			
		||||
    // SELECTION MODE ACTIONS
 | 
			
		||||
 | 
			
		||||
    private fun onDownloadChapters(
 | 
			
		||||
        items: List<eu.kanade.tachiyomi.ui.manga.ChapterItem>,
 | 
			
		||||
        items: List<ChapterItem>,
 | 
			
		||||
        action: ChapterDownloadAction,
 | 
			
		||||
    ) {
 | 
			
		||||
        viewScope.launch {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user