Skip to content

Commit

Permalink
Properly handle showing child forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Nov 4, 2024
1 parent 0cfe857 commit 7e6571a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Refresher/UI/RefresherForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ protected RefresherForm(string subtitle, Size size, bool padBottom = true)

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

if (close) this.Visible = false;
if (close)
{
Application.Instance.MainForm = form;
this.Close();
}
}

protected void UpdateSubtitle(string subtitle)
Expand Down

0 comments on commit 7e6571a

Please sign in to comment.