mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Profile editor - Don't confirm when deleting layers (we have undo)
Profile editor - Apply new brushes before saving to fix undo crash
This commit is contained in:
1 parent
7ffe8f3e5b
commit
3792dd53d2
2 files changed
+10
-23
No files matched your search
@@ -167,18 +167,8 @@ namespace Artemis.UI.Screens.ProfileEditor.ProfileTree.TreeItem
|
||||
}
|
||||
}
|
||||
|
||||
// ReSharper disable once UnusedMember.Global - Called from view
|
||||
public async Task DeleteElement()
|
||||
public void DeleteElement()
|
||||
{
|
||||
bool result = await _dialogService.ShowConfirmDialogAt(
|
||||
"ProfileTreeDialog",
|
||||
"Delete profile element",
|
||||
"Are you sure?"
|
||||
);
|
||||
|
||||
if (!result)
|
||||
return;
|
||||
|
||||
ProfileElement newSelection = null;
|
||||
if (ProfileElement.Parent != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user