* added action that allows to switch relays

* added action list to route setup procedure
This commit is contained in:
Stephan Richter
2020-11-01 02:16:42 +01:00
parent cc7fbd2bda
commit 69f38373c3
10 changed files with 161 additions and 12 deletions

View File

@@ -431,6 +431,7 @@ public class Train implements Constants {
if (!route.lock()) return t("Was not able to lock {}",route);
String error = null;
if (!route.setTurnouts()) error = t("Was not able to set all turnouts!");
route.fireSetupActions(context);
if (error == null && !route.setSignals(null)) error = t("Was not able to set all signals!");
if (error == null && !route.train(this)) error = t("Was not able to assign {} to {}!",this,route);
if (error == null) {