Commit 2677fb75 authored by Nico Eckes's avatar Nico Eckes

Fixed group selector when loaded from file

parent 686a5905
Pipeline #799 passed with stage
in 2 minutes and 48 seconds
......@@ -29,7 +29,6 @@ public class PlayersScreen {
// playermeta width (combobox, spinner) enforcement
group.prefWidthProperty().bind(((Region) group.getParent()).widthProperty());
group.setItems(MainScreen.groups);
activePlayer.bind(players.list.getSelectionModel().selectedItemProperty());
activePlayer.addListener((observable, oldValue, newValue) -> {
......@@ -43,6 +42,7 @@ public class PlayersScreen {
permissions.reset();
players.setSource(MainScreen.players);
group.setItems(MainScreen.groups);
}
private void selectPlayer(Player old, Player now) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment