Restore the three-state consist override in settings

Keeps the old starter's starter.batterydefault key and its three states. The
setting wins over the depot checkbox, which greys out and says so while an
override is in force.
This commit is contained in:
maj00r
2026-09-04 23:24:45 +02:00
parent cef00c4e3c
commit c0cc696dc9
12 changed files with 104 additions and 3 deletions

View File

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