feature: enable syntax highlighting in revision files view (#333)

This commit is contained in:
leo 2024-08-08 10:12:39 +08:00
parent 1ab0ea27df
commit 6bd0920d71
No known key found for this signature in database
3 changed files with 27 additions and 1 deletions

View file

@ -183,7 +183,7 @@ namespace SourceGit.ViewModels
}
else
{
var txt = new Models.RevisionTextFile() { Content = content };
var txt = new Models.RevisionTextFile() { FileName = file.Path, Content = content };
Dispatcher.UIThread.Invoke(() => ViewRevisionFileContent = txt);
}
});