Skip to content
Snippets Groups Projects
Commit 9b22f2fa authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Correctly sort hidden buffers

parent 605bc441
No related branches found
No related tags found
No related merge requests found
...@@ -510,7 +510,12 @@ class QuasselViewModel : ViewModel() { ...@@ -510,7 +510,12 @@ class QuasselViewModel : ViewModel() {
(!config.hideInactiveBuffers()) || (!config.hideInactiveBuffers()) ||
it.bufferStatus != BufferStatus.OFFLINE || it.bufferStatus != BufferStatus.OFFLINE ||
it.info.type.hasFlag(Buffer_Type.StatusBuffer) it.info.type.hasFlag(Buffer_Type.StatusBuffer)
}.distinct() }.let {
if (config.sortAlphabetically())
it.sortedBy { it.info.bufferName }
.sortedByDescending { it.hiddenState == BufferHiddenState.VISIBLE }
else it
}.distinctBy { it.info.bufferId }
) )
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment