mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-20 21:01:06 +08:00
enhance: do not show Git LFS submenu for submodules (#2264)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user