mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
fixed bug with connection tree not appearing
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user