File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ namespace Refresher.UI;
8383 }
8484
8585 State . Log += this . OnLog ;
86+ this . UpdateFormState ( ) ;
87+
88+ if ( this . _shouldTriggerOnConnect )
89+ this . OnConnect ( this , EventArgs . Empty ) ;
8690 }
8791
8892 private void UpdateFormState ( )
@@ -112,6 +116,8 @@ private void UpdateFormState()
112116 this . _button . Text = this . _controller . MainButtonText ;
113117 }
114118
119+ private bool _shouldTriggerOnConnect = false ;
120+
115121 private void InitializePipeline ( )
116122 {
117123 this . _pipeline = new TPipeline ( ) ;
@@ -140,7 +146,10 @@ private void InitializePipeline()
140146 case StepInputType . Directory :
141147 row = AddField < FilePicker > ( input , value ) ;
142148 if ( input . ShouldCauseGameDownloadWhenChanged )
149+ {
143150 ( row . Cells [ 1 ] . Control as FilePicker ) ! . FilePathChanged += this . OnConnect ;
151+ this . _shouldTriggerOnConnect = value != null ;
152+ }
144153 break ;
145154 case StepInputType . ConsoleIp :
146155 row = AddField < TextBox > ( input , value , this . _connectButton = new Button ( this . OnConnect ) { Text = "Connect" } ) ;
You can’t perform that action at this time.
0 commit comments