mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 13:37:29 +01:00
Set splash screen ready state for history and updates pages
This commit is contained in:
@@ -15,6 +15,7 @@ import eu.kanade.presentation.history.components.HistoryDeleteAllDialog
|
||||
import eu.kanade.presentation.history.components.HistoryDeleteDialog
|
||||
import eu.kanade.presentation.history.components.HistoryToolbar
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.ui.main.MainActivity
|
||||
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
||||
import eu.kanade.tachiyomi.ui.recent.history.HistoryPresenter
|
||||
import eu.kanade.tachiyomi.ui.recent.history.HistoryPresenter.Dialog
|
||||
@@ -47,6 +48,11 @@ fun HistoryScreen(
|
||||
onClickDelete = { presenter.dialog = Dialog.Delete(it) },
|
||||
)
|
||||
}
|
||||
LaunchedEffect(items.loadState.refresh) {
|
||||
if (items.loadState.refresh is LoadState.NotLoading) {
|
||||
(presenter.view?.activity as? MainActivity)?.ready = true
|
||||
}
|
||||
}
|
||||
}
|
||||
val onDismissRequest = { presenter.dialog = null }
|
||||
when (val dialog = presenter.dialog) {
|
||||
|
||||
Reference in New Issue
Block a user