File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ public bool CanCreatePopup()
5959 public void StartPopup ( Popup popup )
6060 {
6161 Popup = popup ;
62- ProcessPopup ( ) ;
62+
63+ if ( popup . CanStartDirectly ( ) )
64+ ProcessPopup ( ) ;
6365 }
6466
6567 public async void ProcessPopup ( )
Original file line number Diff line number Diff line change @@ -29,14 +29,19 @@ public string ProgressDescription
2929 }
3030
3131 [ UnconditionalSuppressMessage ( "AssemblyLoadTrimming" , "IL2026:RequiresUnreferencedCode" ) ]
32- public virtual bool Check ( )
32+ public bool Check ( )
3333 {
3434 if ( HasErrors )
3535 return false ;
3636 ValidateAllProperties ( ) ;
3737 return ! HasErrors ;
3838 }
3939
40+ public virtual bool CanStartDirectly ( )
41+ {
42+ return true ;
43+ }
44+
4045 public virtual Task < bool > Sure ( )
4146 {
4247 return null ;
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ public Push(Repository repo, Models.Branch localBranch)
152152 View = new Views . Push ( ) { DataContext = this } ;
153153 }
154154
155- public override bool Check ( )
155+ public override bool CanStartDirectly ( )
156156 {
157- return base . Check ( ) && ! string . IsNullOrEmpty ( _selectedRemoteBranch ? . Head ) ;
157+ return ! string . IsNullOrEmpty ( _selectedRemoteBranch ? . Head ) ;
158158 }
159159
160160 public override Task < bool > Sure ( )
You can’t perform that action at this time.
0 commit comments