File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -59,17 +59,15 @@ public bool CanCreatePopup()
59
59
public void StartPopup ( Popup popup )
60
60
{
61
61
Popup = popup ;
62
- ProcessPopup ( true ) ;
62
+ ProcessPopup ( ) ;
63
63
}
64
64
65
- public async void ProcessPopup ( bool autoCheck = false )
65
+ public async void ProcessPopup ( )
66
66
{
67
67
if ( _popup != null )
68
68
{
69
69
if ( ! _popup . Check ( ) )
70
70
return ;
71
- if ( autoCheck && ! _popup . AutoCheck ( ) )
72
- return ;
73
71
74
72
_popup . InProgress = true ;
75
73
var task = _popup . Sure ( ) ;
Original file line number Diff line number Diff line change @@ -29,19 +29,14 @@ public string ProgressDescription
29
29
}
30
30
31
31
[ UnconditionalSuppressMessage ( "AssemblyLoadTrimming" , "IL2026:RequiresUnreferencedCode" ) ]
32
- public bool Check ( )
32
+ public virtual bool Check ( )
33
33
{
34
34
if ( HasErrors )
35
35
return false ;
36
36
ValidateAllProperties ( ) ;
37
37
return ! HasErrors ;
38
38
}
39
39
40
- public virtual bool AutoCheck ( )
41
- {
42
- return true ;
43
- }
44
-
45
40
public virtual Task < bool > Sure ( )
46
41
{
47
42
return null ;
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ public Push(Repository repo, Models.Branch localBranch)
152
152
View = new Views . Push ( ) { DataContext = this } ;
153
153
}
154
154
155
- public override bool AutoCheck ( )
155
+ public override bool Check ( )
156
156
{
157
- return ! string . IsNullOrEmpty ( _selectedRemoteBranch ? . Head ) ;
157
+ return base . Check ( ) && ! string . IsNullOrEmpty ( _selectedRemoteBranch ? . Head ) ;
158
158
}
159
159
160
160
public override Task < bool > Sure ( )
You can’t perform that action at this time.
0 commit comments