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

@ -59,15 +59,17 @@ namespace SourceGit.ViewModels
public void StartPopup(Popup popup)
{
Popup = popup;
ProcessPopup();
ProcessPopup(true);
}
public async void ProcessPopup()
public async void ProcessPopup(bool autoCheck = false)
{
if (_popup != null)
{
if (!_popup.Check())
return;
if (autoCheck && !_popup.AutoCheck())
return;
_popup.InProgress = true;
var task = _popup.Sure();