1
0
Fork 0

For #6516 On browsing mode change empty tab list before displaying new list

master
mcarare 2019-11-25 14:06:46 +02:00 committed by Emily Kager
parent a16aedb680
commit 41ccb02933
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class SessionControlViewModel(
when (change) {
is SessionControlChange.CollectionsChange -> state.copy(collections = change.collections)
is SessionControlChange.TabsChange -> state.copy(tabs = change.tabs)
is SessionControlChange.ModeChange -> state.copy(mode = change.mode)
is SessionControlChange.ModeChange -> state.copy(mode = change.mode, tabs = emptyList())
is SessionControlChange.ExpansionChange -> {
val newExpandedCollection = state.expandedCollections.toMutableSet()