mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Resolved minor bug that would occassionaly create unnecessary exceptions
This commit is contained in:
@@ -469,7 +469,7 @@ namespace mRemoteNG.UI.Window
|
||||
case NotifyCollectionChangedAction.Add:
|
||||
var childList = senderAsContainerInfo?.Children;
|
||||
ConnectionInfo otherChild = null;
|
||||
if (childList?.Count > 0)
|
||||
if (childList?.Count > 1)
|
||||
try { otherChild = childList.First(child => !args.NewItems.Contains(child)); } catch { }
|
||||
RefreshTreeObject(otherChild ?? senderAsContainerInfo);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user