Add convert line endings to CR option (#251)
* Add convert line endings to CR option * Change order of line ending handling options (None,CRLF,CR,LF)
This commit is contained in:
1 parent
b9686ac4ec
commit
575022139a
4 files changed
+16
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user