mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
Merge pull request #2929 from mRemoteNG/copilot/fix-panel-visibility-issue
Fix panel visibility issue when opening first connection
This commit is contained in:
@@ -145,7 +145,8 @@ namespace mRemoteNG.UI.Window
|
||||
|
||||
// Ensure the ConnectionWindow is visible before adding the tab
|
||||
// This prevents visibility issues when the window was created but not yet shown
|
||||
if (!Visible)
|
||||
// Check DockState instead of Visible to properly detect if window is shown in DockPanel
|
||||
if (DockState == DockState.Unknown || DockState == DockState.Hidden || !Visible)
|
||||
{
|
||||
Show(FrmMain.Default.pnlDock, DockState.Document);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user