mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
optimize<DiffViewer>: use async binding for side-by-side diff
This commit is contained in:
parent
ca0b4ba2f6
commit
262c7afe9e
1 changed files with 2 additions and 2 deletions
|
@ -336,11 +336,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
|
|
||||||
oldEditor.Columns[0].Width = new DataGridLength(lineNumberWidth, DataGridLengthUnitType.Pixel);
|
oldEditor.Columns[0].Width = new DataGridLength(lineNumberWidth, DataGridLengthUnitType.Pixel);
|
||||||
oldEditor.Columns[1].MinWidth = minWidth;
|
oldEditor.Columns[1].MinWidth = minWidth;
|
||||||
oldEditor.ItemsSource = oldSideBlocks;
|
oldEditor.SetBinding(DataGrid.ItemsSourceProperty, new Binding() { Source = oldSideBlocks, IsAsync = true });
|
||||||
|
|
||||||
newEditor.Columns[0].Width = new DataGridLength(lineNumberWidth, DataGridLengthUnitType.Pixel);
|
newEditor.Columns[0].Width = new DataGridLength(lineNumberWidth, DataGridLengthUnitType.Pixel);
|
||||||
newEditor.Columns[1].MinWidth = minWidth;
|
newEditor.Columns[1].MinWidth = minWidth;
|
||||||
newEditor.ItemsSource = newSideBlocks;
|
newEditor.SetBinding(DataGrid.ItemsSourceProperty, new Binding() { Source = newSideBlocks, IsAsync = true });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue