Sidebar - Open newly created profiles in the editor

Sidebar - Close the editor when deleting the current profile
Sidebar - Removed test drag/drop that was breaking the settings/suspend button
This commit is contained in:
Robert committed 2022-03-09 19:06:39 +01:00
1 parent 376a9142d3
commit 5e4fd1de8b
7 files changed
+54 -33

No files matched your search

@@ -203,6 +203,14 @@ namespace Artemis.Core
if (Disposed)
throw new ObjectDisposedException(GetType().Name);
ProfileElement? current = this;
while (current != null)
{
if (ReferenceEquals(child, this))
throw new ArtemisCoreException("Cannot make an element a child of itself");
current = current.Parent;
}
lock (ChildrenList)
{
if (ChildrenList.Contains(child))