mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 01:39:23 +01:00
only mark element parent dirty when setting priority if it actually changed
This commit is contained in:
parent
c7de0322b0
commit
95917e08d6
1 changed files with 2 additions and 0 deletions
|
@ -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