2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] Import PR 3500 from ekager

This commit is contained in:
Mihai Tabara 2019-06-14 18:35:10 -07:00 committed by Emily Kager
parent c5b7e44bfd
commit 75b7d360ea

View File

@ -573,11 +573,10 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver {
getManagedEmitter<SessionControlChange>().onNext(SessionControlChange.TabsChange(listOf())) getManagedEmitter<SessionControlChange>().onNext(SessionControlChange.TabsChange(listOf()))
val deleteOperation: (suspend () -> Unit) = { val deleteOperation: (suspend () -> Unit) = {
sessionManager.filteredSessions(isPrivate) { it.id == pendingSessionDeletion?.sessionId }.forEach { sessionManager.sessions.filter { it.private == isPrivate }.forEach {
useCases.removeTab.invoke(it) useCases.removeTab.invoke(it)
} }
} }
deleteAllSessionsJob = deleteOperation deleteAllSessionsJob = deleteOperation
allowUndo( allowUndo(