refactor<*>: move SourceGit.Git.Preference to SourceGit.Preference

This commit is contained in:
leo 2020-12-17 11:55:06 +08:00
parent d248394e42
commit 3e6c837916
27 changed files with 236 additions and 260 deletions

View file

@ -160,7 +160,7 @@ namespace SourceGit.UI {
var lastOldLine = "";
var lastNewLine = "";
if (App.Preference.UIUseOneSideDiff) {
if (App.Setting.UI.UseCombinedDiff) {
var blocks = new List<ChangeBlock>();
foreach (var line in lineChanges) {
@ -510,7 +510,7 @@ namespace SourceGit.UI {
if (editors.Count == 0) return;
var total = editorContainer.ActualWidth;
if (App.Preference.UIUseOneSideDiff) {
if (App.Setting.UI.UseCombinedDiff) {
var editor = editors[0];
var minWidth = total - editor.NonFrozenColumnsViewportHorizontalOffset;
var scroller = GetVisualChild<ScrollViewer>(editor);