fixed bug with connection tree not appearing

This commit is contained in:
David Sparer
2019-01-22 12:48:12 -06:00
parent 4b736176bf
commit 3649927618
2 changed files with 2 additions and 2 deletions

View File

@@ -176,6 +176,7 @@ namespace mRemoteNG.UI.Forms
credsAndConsSetup.LoadCredsAndCons(Runtime.ConnectionsService, Runtime.CredentialService, _saveConnectionsOnEdit);
Windows.TreeForm.Focus();
Windows.TreeForm.ConnectionTree.ConnectionTreeModel = Runtime.ConnectionsService.ConnectionTreeModel;
PuttySessionsManager.Instance.StartWatcher();
if (Settings.Default.StartupComponentsCheck)

View File

@@ -42,7 +42,6 @@ namespace mRemoteNG.UI.Window
SetConnectionTreeEventHandlers();
Settings.Default.PropertyChanged += OnAppSettingsChanged;
ApplyLanguage();
ConnectionTree.ConnectionTreeModel = Runtime.ConnectionsService.ConnectionTreeModel;
}
private void OnAppSettingsChanged(object o, PropertyChangedEventArgs propertyChangedEventArgs)
@@ -169,7 +168,7 @@ namespace mRemoteNG.UI.Window
}
// TODO: might not need this call anymore
olvConnections.SelectedObject = ConnectionTree.ConnectionTreeModel.RootNodes
olvConnections.SelectedObject = ConnectionTree.ConnectionTreeModel?.RootNodes
.OfType<RootNodeInfo>().FirstOrDefault();
}
#endregion