Skip to content

Commit 7e6571a

Browse files
committed
Properly handle showing child forms
1 parent 0cfe857 commit 7e6571a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Refresher/UI/RefresherForm.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ protected RefresherForm(string subtitle, Size size, bool padBottom = true)
3636

3737
State.Logger.LogDebug(OSIntegration, $"Showing child form {form.GetType().Name} '{form.Title}'");
3838

39-
if (close) this.Visible = false;
39+
if (close)
40+
{
41+
Application.Instance.MainForm = form;
42+
this.Close();
43+
}
4044
}
4145

4246
protected void UpdateSubtitle(string subtitle)

0 commit comments

Comments
 (0)