mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 15:49:20 +01:00
Dismiss clear database confirm dialog on success (#7657)
This commit is contained in:
parent
2a875fe9b8
commit
9f5f101858
@ -44,12 +44,14 @@ fun ClearDatabaseScreen(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (presenter.dialog is ClearDatabasePresenter.Dialog.Delete) {
|
val dialog = presenter.dialog
|
||||||
|
if (dialog is ClearDatabasePresenter.Dialog.Delete) {
|
||||||
ClearDatabaseDeleteDialog(
|
ClearDatabaseDeleteDialog(
|
||||||
onDismissRequest = { presenter.dialog = null },
|
onDismissRequest = { presenter.dialog = null },
|
||||||
onDelete = {
|
onDelete = {
|
||||||
presenter.removeMangaBySourceId((presenter.dialog as ClearDatabasePresenter.Dialog.Delete).sourceIds)
|
presenter.removeMangaBySourceId(dialog.sourceIds)
|
||||||
presenter.clearSelection()
|
presenter.clearSelection()
|
||||||
|
presenter.dialog = null
|
||||||
context.toast(R.string.clear_database_completed)
|
context.toast(R.string.clear_database_completed)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user