diff --git a/FluentTerminal.App.ViewModels/ShellProfileViewModel.cs b/FluentTerminal.App.ViewModels/ShellProfileViewModel.cs index a2c9cbc..acbc90a 100644 --- a/FluentTerminal.App.ViewModels/ShellProfileViewModel.cs +++ b/FluentTerminal.App.ViewModels/ShellProfileViewModel.cs @@ -208,6 +208,7 @@ namespace FluentTerminal.App.ViewModels _lineEndingStyle = value; RaisePropertyChanged(); RaisePropertyChanged(nameof(DoNotModifyIsSelected)); + RaisePropertyChanged(nameof(ToCRIsSelected)); RaisePropertyChanged(nameof(ToCRLFIsSelected)); RaisePropertyChanged(nameof(ToLFIsSelected)); _editingLineEndingStyle = false; @@ -233,6 +234,12 @@ namespace FluentTerminal.App.ViewModels set => LineEndingStyle = LineEndingStyle.ToLF; } + public bool ToCRIsSelected + { + get => LineEndingStyle == LineEndingStyle.ToCR; + set => LineEndingStyle = LineEndingStyle.ToCR; + } + public void SaveChanges() { Model.Arguments = Arguments; diff --git a/FluentTerminal.App/Views/SettingsPages/ShellProfileSettings.xaml b/FluentTerminal.App/Views/SettingsPages/ShellProfileSettings.xaml index 6abd3b4..624bc14 100644 --- a/FluentTerminal.App/Views/SettingsPages/ShellProfileSettings.xaml +++ b/FluentTerminal.App/Views/SettingsPages/ShellProfileSettings.xaml @@ -292,6 +292,10 @@ Content="Convert line endings to CR+LF" GroupName="LineEndingStyle" IsChecked="{x:Bind ToCRLFIsSelected, Mode=TwoWay}" /> +