We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bf78a9 commit b1dcf76Copy full SHA for b1dcf76
src/ViewModels/FileHistories.cs
@@ -74,7 +74,7 @@ private void RefreshViewContent()
74
{
75
if (_isDiffMode)
76
77
- SetViewContentAsDiff();
+ ViewContent = new DiffContext(_repo, new(_revision), _viewContent as DiffContext);
78
return;
79
}
80
@@ -152,11 +152,6 @@ private async Task<object> GetRevisionFileContentAsync(Models.Object obj)
152
return new FileHistoriesRevisionFile(_file);
153
154
155
- private void SetViewContentAsDiff()
156
- {
157
- ViewContent = new DiffContext(_repo, new Models.DiffOption(_revision), _viewContent as DiffContext);
158
- }
159
-
160
private string _repo = null;
161
private string _file = null;
162
private Models.FileVersion _revision = null;
0 commit comments