Added double click to AccountsTab

This commit is contained in:
RaphiMC 2023-02-20 00:16:14 +01:00
parent 6dd76b46ad
commit 3f899f1d92

View File

@ -92,6 +92,9 @@ public class AccountsTab extends AUITab {
if (SwingUtilities.isRightMouseButton(e)) {
int row = accountsList.locationToIndex(e.getPoint());
accountsList.setSelectedIndex(row);
} else if (e.getClickCount() == 2) {
int index = accountsList.getSelectedIndex();
if (index != -1) markSelected(index);
}
}
});