@@ -466,44 +466,47 @@ Namespace UI
466466 If IC.Info.Protocol = mRemoteNG.Connection.Protocol.Protocols.RDP Then
467467 Dim rdp As mRemoteNG.Connection.Protocol.RDP = IC.Protocol
468468
469- cmenTabFullscreen.Enabled = True
469+ cmenTabFullscreen.Visible = True
470470 cmenTabFullscreen.Checked = rdp.Fullscreen
471471
472- cmenTabSmartSize.Enabled = True
472+ cmenTabSmartSize.Visible = True
473473 cmenTabSmartSize.Checked = rdp.SmartSize
474+
475+ ToolStripSeparator1.Visible = True
474476 Else
475- cmenTabFullscreen.Enabled = False
476- cmenTabSmartSize.Enabled = False
477+ cmenTabFullscreen.Visible = False
478+ cmenTabSmartSize.Visible = False
479+ ToolStripSeparator1.Visible = False
477480 End If
478481
479482 If IC.Info.Protocol = mRemoteNG.Connection.Protocol.Protocols.VNC Then
480- Me .cmenTabSendSpecialKeys.Enabled = True
481- Me .cmenTabViewOnly.Enabled = True
483+ Me .cmenTabSendSpecialKeys.Visible = True
484+ Me .cmenTabViewOnly.Visible = True
482485
483- Me .cmenTabSmartSize.Enabled = True
484- Me .cmenTabStartChat.Enabled = True
485- Me .cmenTabRefreshScreen.Enabled = True
486- Me .cmenTabTransferFile.Enabled = False
486+ Me .cmenTabSmartSize.Visible = True
487+ Me .cmenTabStartChat.Visible = True
488+ Me .cmenTabRefreshScreen.Visible = True
489+ Me .cmenTabTransferFile.Visible = False
487490
488491 Dim vnc As mRemoteNG.Connection.Protocol.VNC = IC.Protocol
489492 Me .cmenTabSmartSize.Checked = vnc.SmartSize
490493 Me .cmenTabViewOnly.Checked = vnc.ViewOnly
491494 Else
492- Me .cmenTabSendSpecialKeys.Enabled = False
493- Me .cmenTabViewOnly.Enabled = False
494- Me .cmenTabStartChat.Enabled = False
495- Me .cmenTabRefreshScreen.Enabled = False
496- Me .cmenTabTransferFile.Enabled = False
495+ Me .cmenTabSendSpecialKeys.Visible = False
496+ Me .cmenTabViewOnly.Visible = False
497+ Me .cmenTabStartChat.Visible = False
498+ Me .cmenTabRefreshScreen.Visible = False
499+ Me .cmenTabTransferFile.Visible = False
497500 End If
498501
499502 If IC.Info.Protocol = mRemoteNG.Connection.Protocol.Protocols.SSH1 Or IC.Info.Protocol = mRemoteNG.Connection.Protocol.Protocols.SSH2 Then
500- Me .cmenTabTransferFile.Enabled = True
503+ Me .cmenTabTransferFile.Visible = True
501504 End If
502505
503506 If TypeOf IC.Protocol Is mRemoteNG.Connection.Protocol.PuttyBase Then
504- Me .cmenTabPuttySettings.Enabled = True
507+ Me .cmenTabPuttySettings.Visible = True
505508 Else
506- Me .cmenTabPuttySettings.Enabled = False
509+ Me .cmenTabPuttySettings.Visible = False
507510 End If
508511
509512 AddExternalApps()
0 commit comments