Skip to content

Commit 576e55e

Browse files
committed
Fix form not registering RPCS3 folder when value is previously filled
1 parent 282bcb7 commit 576e55e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Refresher/UI/PipelineForm.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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" });

0 commit comments

Comments
 (0)