Fix bug in updateStationSettings
This commit is contained in:
parent
e5877c8a34
commit
c7fb317e05
@ -195,12 +195,12 @@ public class MainController implements Initializable {
|
||||
}
|
||||
|
||||
private void updateStationSettings(StationSettings newStationSettings) {
|
||||
logger.info("Updating station settings: " + newStationSettings.getName());
|
||||
|
||||
if (newStationSettings == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
logger.info("Updating station settings: " + newStationSettings.getName());
|
||||
|
||||
selectedStation = newStationSettings;
|
||||
selectedStationName.set(newStationSettings.getName());
|
||||
settings.setSelectedStationName(selectedStationName.get());
|
||||
|
Loading…
x
Reference in New Issue
Block a user