mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
Fixes #10815: Sort login items on initial load
This commit is contained in:
parent
610409862b
commit
7974a5c77c
@ -84,11 +84,13 @@ private fun savedLoginsStateReducer(
|
||||
action: LoginsAction
|
||||
): LoginsListState {
|
||||
return when (action) {
|
||||
is LoginsAction.UpdateLoginsList -> state.copy(
|
||||
isLoading = false,
|
||||
loginList = action.list,
|
||||
filteredItems = action.list
|
||||
)
|
||||
is LoginsAction.UpdateLoginsList -> {
|
||||
state.copy(
|
||||
isLoading = false,
|
||||
loginList = action.list,
|
||||
filteredItems = state.sortingStrategy(action.list)
|
||||
)
|
||||
}
|
||||
is LoginsAction.FilterLogins -> {
|
||||
filterItems(
|
||||
action.newText,
|
||||
|
Loading…
Reference in New Issue
Block a user