mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
feature: shows selected revision file size if it's a binary file
This commit is contained in:
parent
f6eb1281b5
commit
f4b396596b
3 changed files with 7 additions and 1 deletions
|
@ -353,8 +353,9 @@ namespace SourceGit.ViewModels {
|
|||
Task.Run(() => {
|
||||
var isBinary = new Commands.IsBinary(_repo, _commit.SHA, file.Path).Result();
|
||||
if (isBinary) {
|
||||
var size = new Commands.QueryFileSize(_repo, file.Path, _commit.SHA).Result();
|
||||
Dispatcher.UIThread.Invoke(() => {
|
||||
ViewRevisionFileContent = new Models.RevisionBinaryFile();
|
||||
ViewRevisionFileContent = new Models.RevisionBinaryFile() { Size = size };
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue