mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Dismiss clear database confirm dialog on success (#7657)
This commit is contained in:
		| @@ -44,12 +44,14 @@ fun ClearDatabaseScreen( | ||||
|             }, | ||||
|         ) | ||||
|     } | ||||
|     if (presenter.dialog is ClearDatabasePresenter.Dialog.Delete) { | ||||
|     val dialog = presenter.dialog | ||||
|     if (dialog is ClearDatabasePresenter.Dialog.Delete) { | ||||
|         ClearDatabaseDeleteDialog( | ||||
|             onDismissRequest = { presenter.dialog = null }, | ||||
|             onDelete = { | ||||
|                 presenter.removeMangaBySourceId((presenter.dialog as ClearDatabasePresenter.Dialog.Delete).sourceIds) | ||||
|                 presenter.removeMangaBySourceId(dialog.sourceIds) | ||||
|                 presenter.clearSelection() | ||||
|                 presenter.dialog = null | ||||
|                 context.toast(R.string.clear_database_completed) | ||||
|             }, | ||||
|         ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user