Fix Options panel corruption when toggling 'Always show panel tabs'

Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-16 21:05:51 +00:00
parent b4aa30de23
commit 4e20049ea3

View File

@@ -89,7 +89,10 @@ namespace mRemoteNG.UI.Forms.OptionsPages
* Properties.OptionsTabsPanelsPage.Default.AlwaysShowConnectionTabs nerver used
*/
//Properties.OptionsTabsPanelsPage.Default.AlwaysShowConnectionTabs = chkAlwaysShowConnectionTabs.Checked;
FrmMain.Default.ShowHidePanelTabs();
// Defer the ShowHidePanelTabs call to avoid corrupting the Options window
// This ensures the call happens after the Options window is closed
FrmMain.Default.BeginInvoke(new System.Windows.Forms.MethodInvoker(FrmMain.Default.ShowHidePanelTabs));
/*
* Comment added: June 16, 2024