Resolved bug with the Reconnect context menu item being permanently disabled for containers

This commit is contained in:
David Sparer
2016-09-27 14:52:06 -06:00
parent b73547ced9
commit 7fe8749807

View File

@@ -433,8 +433,8 @@ namespace mRemoteNG.UI.Controls
_cMenTreeDisconnect.Enabled = false;
var openConnections = ((ContainerInfo)connectionInfo).Children.Sum(child => child.OpenConnections.Count);
if (openConnections == 0)
_cMenTreeDisconnect.Enabled = false;
if (openConnections > 0)
_cMenTreeDisconnect.Enabled = true;
_cMenTreeToolsTransferFile.Enabled = false;
_cMenTreeToolsExternalApps.Enabled = false;