fix: when upstream is null show CommitAndPush and stop auto push (#955) (#956)

This commit is contained in:
GadflyFang 2025-02-07 11:30:14 +08:00 committed by GitHub
parent d1f3469250
commit 2105fd450d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 13 deletions

View file

@ -26,12 +26,6 @@ namespace SourceGit.ViewModels
}
}
public bool CanCommitWithPush
{
get => _canCommitWithPush;
set => SetProperty(ref _canCommitWithPush, value);
}
public bool HasUnsolvedConflicts
{
get => _hasUnsolvedConflicts;
@ -1625,7 +1619,6 @@ namespace SourceGit.ViewModels
private bool _isUnstaging = false;
private bool _isCommitting = false;
private bool _useAmend = false;
private bool _canCommitWithPush = false;
private List<Models.Change> _cached = [];
private List<Models.Change> _unstaged = [];
private List<Models.Change> _staged = [];