mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-08-06 09:25:06 +00:00
Fixed annoying bug that would cause current tile to be disselected when editing name/category
This commit is contained in:
@@ -229,6 +229,7 @@ public class TileEditorTabControllerImpl extends TileEditorTabController {
|
||||
|
||||
@Override
|
||||
public void rebuildTileSelectors() {
|
||||
Tile t = getCurrentTile();
|
||||
tileSelector.getItems().clear();
|
||||
List<Tile> allTiles = Application.gameData.getTile();
|
||||
allTiles.sort((Tile o1, Tile o2) -> {
|
||||
@@ -240,5 +241,6 @@ public class TileEditorTabControllerImpl extends TileEditorTabController {
|
||||
});
|
||||
tileSelector.getItems().addAll(allTiles);
|
||||
tileSelector.getSelectionModel().select(allTiles.indexOf(getCurrentTile()));
|
||||
setCurrentTile(t);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user