Fixes #3142: AlwaysShowPanelTabs Setting Not Respected at Application Launch

This commit is contained in:
Joe Cefoli
2026-02-13 13:54:13 -05:00
parent db1496d4a2
commit 2631926eda
2 changed files with 2 additions and 7 deletions

View File

@@ -55,7 +55,6 @@ namespace mRemoteNG.Config.Settings
SetShowSystemTrayIcon();
SetAutoSave();
LoadExternalAppsFromXml();
SetAlwaysShowPanelTabs();
if (Properties.App.Default.ResetToolbars)
SetToolbarsDefault();
@@ -68,12 +67,6 @@ namespace mRemoteNG.Config.Settings
}
}
private static void SetAlwaysShowPanelTabs()
{
if (Properties.OptionsTabsPanelsPage.Default.AlwaysShowPanelTabs)
FrmMain.Default.pnlDock.DocumentStyle = DocumentStyle.DockingWindow;
}
private void SetSupportedCulture()
{

View File

@@ -234,6 +234,8 @@ namespace mRemoteNG.UI.Forms
else
SetLayout();
ShowHidePanelTabs();
Runtime.ConnectionsService.ConnectionsLoaded += ConnectionsServiceOnConnectionsLoaded;
Runtime.ConnectionsService.ConnectionsSaved += ConnectionsServiceOnConnectionsSaved;