fix change station
This commit is contained in:
@@ -117,8 +117,7 @@ public class OffersController {
|
|||||||
stationsBar.getButtons().get(0).setSelected(true);
|
stationsBar.getButtons().get(0).setSelected(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
station = stations.isEmpty() ? null : stations.get(0);
|
fillTables(stations.isEmpty() ? null : stations.get(0));
|
||||||
fillTables(station);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private ToggleButton buildStationNode(StationModel station){
|
private ToggleButton buildStationNode(StationModel station){
|
||||||
@@ -129,6 +128,7 @@ public class OffersController {
|
|||||||
|
|
||||||
private void fillTables(StationModel station){
|
private void fillTables(StationModel station){
|
||||||
LOG.info("Change station to {}", station);
|
LOG.info("Change station to {}", station);
|
||||||
|
this.station = station;
|
||||||
sells.clear();
|
sells.clear();
|
||||||
buys.clear();
|
buys.clear();
|
||||||
distance.setText("");
|
distance.setText("");
|
||||||
|
|||||||
Reference in New Issue
Block a user