enhance: disable OPEN DETAILS button when one of submodule revision is lost

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-04-14 20:30:19 +08:00
parent 87768e9d98
commit cff6db8dc7

View File

@@ -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