diff --git a/src/SourceGit/App.JsonCodeGen.cs b/src/SourceGit/App.JsonCodeGen.cs index af73a68e..aa99f697 100644 --- a/src/SourceGit/App.JsonCodeGen.cs +++ b/src/SourceGit/App.JsonCodeGen.cs @@ -6,4 +6,4 @@ namespace SourceGit [JsonSerializable(typeof(Models.Version))] [JsonSerializable(typeof(ViewModels.Preference))] internal partial class JsonCodeGen : JsonSerializerContext { } -} +} \ No newline at end of file diff --git a/src/SourceGit/App.axaml.cs b/src/SourceGit/App.axaml.cs index 6780fd2e..68a601db 100644 --- a/src/SourceGit/App.axaml.cs +++ b/src/SourceGit/App.axaml.cs @@ -253,7 +253,7 @@ namespace SourceGit }; dialog.Show(desktop.MainWindow); - } + } }); } diff --git a/src/SourceGit/Commands/GetImageFileAsBitmap.cs b/src/SourceGit/Commands/GetImageFileAsBitmap.cs index e145d67f..05da8cc1 100644 --- a/src/SourceGit/Commands/GetImageFileAsBitmap.cs +++ b/src/SourceGit/Commands/GetImageFileAsBitmap.cs @@ -37,4 +37,4 @@ namespace SourceGit.Commands } } } -} +} \ No newline at end of file diff --git a/src/SourceGit/Converters/FontSizeModifyConverters.cs b/src/SourceGit/Converters/FontSizeModifyConverters.cs index a908c99c..e2f1864a 100644 --- a/src/SourceGit/Converters/FontSizeModifyConverters.cs +++ b/src/SourceGit/Converters/FontSizeModifyConverters.cs @@ -10,4 +10,4 @@ namespace SourceGit.Converters public static FuncValueConverter Decrease = new FuncValueConverter(v => v - 1.0); } -} +} \ No newline at end of file diff --git a/src/SourceGit/Models/Version.cs b/src/SourceGit/Models/Version.cs index 301de02a..853f2423 100644 --- a/src/SourceGit/Models/Version.cs +++ b/src/SourceGit/Models/Version.cs @@ -34,4 +34,4 @@ namespace SourceGit.Models } public class AlreadyUpToDate { } -} +} \ No newline at end of file diff --git a/src/SourceGit/Native/Linux.cs b/src/SourceGit/Native/Linux.cs index 852eee4b..bf70d855 100644 --- a/src/SourceGit/Native/Linux.cs +++ b/src/SourceGit/Native/Linux.cs @@ -35,7 +35,7 @@ namespace SourceGit.Native if (File.Exists(toolPath)) return toolPath; return string.Empty; } - + public string FindFleet() { var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.local/share/JetBrains/Toolbox/apps/fleet/bin/Fleet"; diff --git a/src/SourceGit/Native/MacOS.cs b/src/SourceGit/Native/MacOS.cs index 006f7e8e..39506276 100644 --- a/src/SourceGit/Native/MacOS.cs +++ b/src/SourceGit/Native/MacOS.cs @@ -33,7 +33,7 @@ namespace SourceGit.Native return toolPath; return string.Empty; } - + public string FindFleet() { var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Applications/Fleet.app/Contents/MacOS/Fleet"; diff --git a/src/SourceGit/ViewModels/CommitDetail.cs b/src/SourceGit/ViewModels/CommitDetail.cs index 24b362ea..a7d6d564 100644 --- a/src/SourceGit/ViewModels/CommitDetail.cs +++ b/src/SourceGit/ViewModels/CommitDetail.cs @@ -449,7 +449,7 @@ namespace SourceGit.ViewModels ViewRevisionFileContent = new Models.RevisionBinaryFile() { Size = size }; }); } - + return; } diff --git a/src/SourceGit/ViewModels/DiffContext.cs b/src/SourceGit/ViewModels/DiffContext.cs index 02c8aa9d..1d914fda 100644 --- a/src/SourceGit/ViewModels/DiffContext.cs +++ b/src/SourceGit/ViewModels/DiffContext.cs @@ -127,8 +127,8 @@ namespace SourceGit.ViewModels binaryDiff.NewSize = File.Exists(fullPath) ? new FileInfo(fullPath).Length : 0; } rs = binaryDiff; - } - } + } + } else if (latest.IsLFS) { rs = latest.LFSDiff; diff --git a/src/SourceGit/ViewModels/SelfUpdate.cs b/src/SourceGit/ViewModels/SelfUpdate.cs index 3b471576..b1934026 100644 --- a/src/SourceGit/ViewModels/SelfUpdate.cs +++ b/src/SourceGit/ViewModels/SelfUpdate.cs @@ -12,4 +12,4 @@ namespace SourceGit.ViewModels private object _data = null; } -} +} \ No newline at end of file diff --git a/src/SourceGit/Views/DiffView.axaml.cs b/src/SourceGit/Views/DiffView.axaml.cs index e0ed703f..2e78e839 100644 --- a/src/SourceGit/Views/DiffView.axaml.cs +++ b/src/SourceGit/Views/DiffView.axaml.cs @@ -102,7 +102,7 @@ namespace SourceGit.Views if (left != null) { return GetDesiredSize(left.Size, availableSize); - } + } else if (right != null) { return GetDesiredSize(right.Size, availableSize); diff --git a/src/SourceGit/Views/SelfUpdate.axaml.cs b/src/SourceGit/Views/SelfUpdate.axaml.cs index 90bb2862..eafb3086 100644 --- a/src/SourceGit/Views/SelfUpdate.axaml.cs +++ b/src/SourceGit/Views/SelfUpdate.axaml.cs @@ -36,4 +36,4 @@ namespace SourceGit.Views e.Handled = true; } } -} +} \ No newline at end of file