Move the battery option to the depot as a consist property

It was a global preference that rewrote the trainset speed at launch, while what
it really sets is whether this consist starts prepared or cold. Now a checkbox in
the consist-scope section, acting on the consist being edited.
This commit is contained in:
maj00r
2026-09-04 23:17:17 +02:00
parent 1939493b47
commit cef00c4e3c
13 changed files with 115 additions and 55 deletions

View File

@@ -260,7 +260,6 @@ public partial class Settings : UserControl, ISettingsCapture
AutoCloseStarterCb.IsChecked = s.AutoCloseStarter;
LargeThumbnailsCb.IsChecked = s.LargeThumbnails;
AutoExpandTreeCb.IsChecked = s.AutoExpandSceneryTree;
BatteryDefaultCb.SelectedIndex = (int)s.BatteryDefault;
}
finally
{
@@ -358,7 +357,6 @@ public partial class Settings : UserControl, ISettingsCapture
s.AutoCloseStarter = IsChecked(AutoCloseStarterCb);
s.LargeThumbnails = IsChecked(LargeThumbnailsCb);
s.AutoExpandSceneryTree = IsChecked(AutoExpandTreeCb);
s.BatteryDefault = (BatteryDefault)Math.Max(0, BatteryDefaultCb.SelectedIndex);
}
private void ComButton_OnClick(object? sender, RoutedEventArgs e)