mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Fix options panel not opening on second call
Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com>
This commit is contained in:
@@ -91,8 +91,10 @@ namespace mRemoteNG.UI.Forms
|
||||
private void FrmOptions_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
// When the form becomes visible, ensure the panel is populated with the selected page
|
||||
if (this.Visible && pnlMain.Controls.Count == 0)
|
||||
if (this.Visible)
|
||||
{
|
||||
// Clear and re-add the selected page to ensure it's properly displayed
|
||||
pnlMain.Controls.Clear();
|
||||
OptionsPage page = (OptionsPage)lstOptionPages.SelectedObject;
|
||||
if (page != null)
|
||||
pnlMain.Controls.Add(page);
|
||||
|
||||
Reference in New Issue
Block a user