mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Profile tree - Fixed dragging while renaming
Profile tree - Fixed dragging folders onto themselves Profile tree - Suspend keybinds while renaming Brushes - Added brush presets UI Numberbox - Removed double validation error
This commit is contained in:
1 parent
a23af68a12
commit
29ef160975
16 files changed
+211
-103
No files matched your search
@@ -342,7 +342,7 @@ namespace Artemis.Core
|
||||
int current = 2;
|
||||
while (true)
|
||||
{
|
||||
if (Children.All(c => c is Layer && c.Name != $"{baseName} ({current})"))
|
||||
if (Children.Where(c => c is Layer).All(c => c.Name != $"{baseName} ({current})"))
|
||||
return $"{baseName} ({current})";
|
||||
current++;
|
||||
}
|
||||
@@ -361,7 +361,7 @@ namespace Artemis.Core
|
||||
int current = 2;
|
||||
while (true)
|
||||
{
|
||||
if (Children.All(c => c is Folder && c.Name != $"{baseName} ({current})"))
|
||||
if (Children.Where(c => c is Folder).All(c => c.Name != $"{baseName} ({current})"))
|
||||
return $"{baseName} ({current})";
|
||||
current++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user