manager: make system and shell group conspicuously

This commit is contained in:
weishu
2023-10-24 10:57:03 +08:00
parent 65f35fdd38
commit 31f979569e

View File

@@ -192,7 +192,12 @@ fun GroupsPanel(selected: List<Groups>, closeSelection: (selection: Set<Groups>)
if (showDialog) {
val groups = Groups.values().sortedWith(compareBy<Groups> {
it != Groups.ROOT
when (it) {
Groups.ROOT -> 0
Groups.SYSTEM -> 1
Groups.SHELL -> 2
else -> Int.MAX_VALUE
}
}.then(compareBy { it.name }))
val options = groups.map { value ->
ListOption(