code_review: PR #956

* Just use `Check` instead of a new one `AutoCheck`

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-02-07 11:36:30 +08:00
parent 2105fd450d
commit 8edd955370
No known key found for this signature in database
3 changed files with 5 additions and 12 deletions

View file

@ -152,9 +152,9 @@ namespace SourceGit.ViewModels
View = new Views.Push() { DataContext = this };
}
public override bool AutoCheck()
public override bool Check()
{
return !string.IsNullOrEmpty(_selectedRemoteBranch?.Head);
return base.Check() && !string.IsNullOrEmpty(_selectedRemoteBranch?.Head);
}
public override Task<bool> Sure()