We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a5f758 commit 5a7b292Copy full SHA for 5a7b292
1 file changed
src/main/kotlin/org/polyfrost/intelliprocessor/utils/SourceSetFileDialog.kt
@@ -94,8 +94,10 @@ class SourceSetFileDialog(
94
it.toString().lowercase().contains(filter)
95
})
96
97
- // Improve keyboard navigation by auto-selecting the only remaining result
98
- if (listModel.size == 1) {
+ if (filter.isEmpty() || listModel.isEmpty) {
+ list.setSelectedValue(null, false)
99
+ } else {
100
+ // Improve keyboard navigation by auto-selecting the first result
101
list.setSelectedValue(listModel.getElementAt(0), false)
102
}
103
0 commit comments