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:
parent
c5b7e44bfd
commit
75b7d360ea
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user