mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(recents): Only set list on queue state change when it's not empty
This commit is contained in:
parent
f3cac7cac8
commit
640feb69ac
1 changed files with 2 additions and 2 deletions
|
@ -113,9 +113,9 @@ class RecentsPresenter(
|
||||||
}
|
}
|
||||||
presenterScope.launchIO {
|
presenterScope.launchIO {
|
||||||
downloadManager.queueState.collectLatest {
|
downloadManager.queueState.collectLatest {
|
||||||
setDownloadedChapters(recentItems, it)
|
if (recentItems.isNotEmpty()) setDownloadedChapters(recentItems, it)
|
||||||
withUIContext {
|
withUIContext {
|
||||||
view?.showLists(recentItems, true)
|
if (recentItems.isNotEmpty()) view?.showLists(recentItems, true)
|
||||||
view?.updateDownloadStatus(!downloadManager.isPaused())
|
view?.updateDownloadStatus(!downloadManager.isPaused())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue