[#11] Close dropdown list first. the callback might restart the application on a settings change and keep the menu open.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-21 18:12:30 +01:00
parent 4d37e77f55
commit c1567efe52

View File

@@ -136,8 +136,8 @@ fun <T> StringSetting(name: String, map: Map<T, Int>, selected: T, onSelected: (
map.forEach {
DropdownMenuItem(
onClick = {
onSelected(it.key)
expanded = false
onSelected(it.key)
},
text = { Text(stringResource(it.value)) },
trailingIcon = {