mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-16 10:44:32 +02:00
only mark element parent dirty when setting priority if it actually changed
This commit is contained in:
parent
c7de0322b0
commit
95917e08d6
|
@ -210,6 +210,8 @@ namespace MLEM.Ui.Elements {
|
|||
public int Priority {
|
||||
get => this.priority;
|
||||
set {
|
||||
if (this.priority == value)
|
||||
return;
|
||||
this.priority = value;
|
||||
if (this.Parent != null)
|
||||
this.Parent.SetSortedChildrenDirty();
|
||||
|
|
Loading…
Reference in a new issue