5114 make first group selected by default

This commit is contained in:
William Schaefer 2019-07-16 17:56:33 -04:00
parent 8213a85ca0
commit bd84a831f5

View File

@ -53,6 +53,9 @@ class GroupListPanel extends javax.swing.JPanel {
results = searchCompleteEvent.getSearchResults().toLinkedHashMap();
Set<String> resultsKeySet = results.keySet();
groupList.setListData(resultsKeySet.toArray(new String[results.size()]));
if (groupList.getModel().getSize() > 0) {
groupList.setSelectedIndex(0);
}
validate();
repaint();
} catch (FileSearchException ex) {