Fixes issue #2
This commit is contained in:
parent
379d1ed051
commit
16edbfd44c
@ -286,6 +286,7 @@ public class GUI implements ActionListener {
|
||||
targetServer = new JComboBox<>();
|
||||
sl_panel_1.putConstraint(SpringLayout.NORTH, targetServer, 10, SpringLayout.NORTH, controlServers);
|
||||
controlServers.add(targetServer);
|
||||
targetServer.addActionListener(this);
|
||||
|
||||
targetPlayer = new JComboBox<>();
|
||||
sl_panel_1.putConstraint(SpringLayout.NORTH, targetPlayer, 6, SpringLayout.SOUTH, targetServer);
|
||||
@ -508,6 +509,8 @@ public class GUI implements ActionListener {
|
||||
background();
|
||||
} else if (e.getSource() == chckbxmntmDelayStartup) {
|
||||
delay();
|
||||
} else if (e.getSource() == targetServer) {
|
||||
updatePlayers();
|
||||
} else if (e.getSource() == chckbxmntmDownloadJars) {
|
||||
downloadJars();
|
||||
} else if (e.getSource() == mntmErrors) {
|
||||
@ -752,7 +755,9 @@ public class GUI implements ActionListener {
|
||||
targetPlayer.removeAllItems();
|
||||
selectedServerValue = selectedServer.toString();
|
||||
if (selectedServerValue.equals("All")) {
|
||||
for (String player : this.globalPlayers) targetPlayer.addItem(player);
|
||||
for (String player : this.globalPlayers) {
|
||||
targetPlayer.addItem(player);
|
||||
}
|
||||
} else {
|
||||
for (String player : Profile.getCurrent().getCollection(selectedServerValue).getServer().getPlayers()) {
|
||||
targetPlayer.addItem(player);
|
||||
|
Loading…
Reference in New Issue
Block a user