mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 05:10:25 +08:00
enhance: disable OPEN DETAILS button when one of submodule revision is lost
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -612,7 +612,9 @@ namespace SourceGit.Models
|
||||
public RevisionSubmodule Old { get; set; } = null;
|
||||
public RevisionSubmodule New { get; set; } = null;
|
||||
|
||||
public bool CanOpenDetails => File.Exists(Path.Combine(FullPath, ".git")) && Old != null && New != null;
|
||||
public bool CanOpenDetails => File.Exists(Path.Combine(FullPath, ".git")) &&
|
||||
Old != null && Old.Commit.Author != User.Invalid &&
|
||||
New != null && New.Commit.Author != User.Invalid;
|
||||
}
|
||||
|
||||
public class DiffResult
|
||||
|
||||
Reference in New Issue
Block a user