Merge pull request #2925 from mRemoteNG/copilot/fix-options-panel-display

Fix Options panel corruption when toggling "Always show panel tabs"
This commit is contained in:
Dimitrij
2025-10-16 22:12:01 +01:00
committed by GitHub

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