enhance: remember the last state of Ignore Whitespace Change and EOF in text diff view (#1198)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-15 17:58:26 +08:00
parent cf763b47c6
commit 9ba0b595d9
No known key found for this signature in database
3 changed files with 17 additions and 8 deletions

View file

@ -212,6 +212,12 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _useSyntaxHighlighting, value);
}
public bool IgnoreWhitespaceChangesInDiff
{
get => _ignoreWhitespaceChangesInDiff;
set => SetProperty(ref _ignoreWhitespaceChangesInDiff, value);
}
public bool EnableDiffViewWordWrap
{
get => _enableDiffViewWordWrap;
@ -658,6 +664,7 @@ namespace SourceGit.ViewModels
private bool _useTwoColumnsLayoutInHistories = false;
private bool _displayTimeAsPeriodInHistories = false;
private bool _useSideBySideDiff = false;
private bool _ignoreWhitespaceChangesInDiff = false;
private bool _useSyntaxHighlighting = false;
private bool _enableDiffViewWordWrap = false;
private bool _showHiddenSymbolsInDiffView = false;