mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-31 09:04:59 +00:00
refactor<*>: move SourceGit.Git.Preference to SourceGit.Preference
This commit is contained in:
parent
d248394e42
commit
3e6c837916
27 changed files with 236 additions and 260 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue