From 460cc689958ecdd1ad32ba8730a3777e52da392e Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 15 Apr 2026 19:10:03 +0800 Subject: [PATCH] enhance: do not show `Git LFS` submenu for submodules (#2264) Signed-off-by: leo --- src/Views/WorkingCopy.axaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Views/WorkingCopy.axaml.cs b/src/Views/WorkingCopy.axaml.cs index 9a5969de..10a0d263 100644 --- a/src/Views/WorkingCopy.axaml.cs +++ b/src/Views/WorkingCopy.axaml.cs @@ -541,7 +541,7 @@ namespace SourceGit.Views hasExtra = true; } - if (repo.IsLFSEnabled()) + if (File.Exists(path) && repo.IsLFSEnabled()) { var lfs = new MenuItem(); lfs.Header = App.Text("GitLFS"); @@ -1038,7 +1038,7 @@ namespace SourceGit.Views menu.Items.Add(patch); menu.Items.Add(new MenuItem() { Header = "-" }); - if (repo.IsLFSEnabled()) + if (File.Exists(path) && repo.IsLFSEnabled()) { var lfs = new MenuItem(); lfs.Header = App.Text("GitLFS");