mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
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:
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))
|
||||
|
||||
Reference in new issue
Block a user