Fix bug in updateStationSettings

This commit is contained in:
Nathan McRae 2025-01-29 20:08:33 -08:00
parent e5877c8a34
commit c7fb317e05

View File

@ -195,12 +195,12 @@ public class MainController implements Initializable {
} }
private void updateStationSettings(StationSettings newStationSettings) { private void updateStationSettings(StationSettings newStationSettings) {
logger.info("Updating station settings: " + newStationSettings.getName());
if (newStationSettings == null) { if (newStationSettings == null) {
return; return;
} }
logger.info("Updating station settings: " + newStationSettings.getName());
selectedStation = newStationSettings; selectedStation = newStationSettings;
selectedStationName.set(newStationSettings.getName()); selectedStationName.set(newStationSettings.getName());
settings.setSelectedStationName(selectedStationName.get()); settings.setSelectedStationName(selectedStationName.get());