mirror of
https://github.com/jaquadro/NBTExplorer.git
synced 2025-01-10 01:46:24 +00:00
Fixed node cutting/deleting not triggering isModified state
This commit is contained in:
parent
d0c521c500
commit
b927f06b95
1 changed files with 2 additions and 0 deletions
|
@ -212,6 +212,7 @@ namespace NBTExplorer.Model
|
||||||
{
|
{
|
||||||
if (CanDeleteNode) {
|
if (CanDeleteNode) {
|
||||||
TagParent.DeleteTag(Tag);
|
TagParent.DeleteTag(Tag);
|
||||||
|
IsParentModified = true;
|
||||||
return Parent.Nodes.Remove(this);
|
return Parent.Nodes.Remove(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,6 +252,7 @@ namespace NBTExplorer.Model
|
||||||
NbtClipboardController.CopyToClipboard(new NbtClipboardData(NodeName, Tag));
|
NbtClipboardController.CopyToClipboard(new NbtClipboardData(NodeName, Tag));
|
||||||
|
|
||||||
TagParent.DeleteTag(Tag);
|
TagParent.DeleteTag(Tag);
|
||||||
|
IsParentModified = true;
|
||||||
Parent.Nodes.Remove(this);
|
Parent.Nodes.Remove(this);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue