mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 14:38:34 +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 {
|
public int Priority {
|
||||||
get => this.priority;
|
get => this.priority;
|
||||||
set {
|
set {
|
||||||
|
if (this.priority == value)
|
||||||
|
return;
|
||||||
this.priority = value;
|
this.priority = value;
|
||||||
if (this.Parent != null)
|
if (this.Parent != null)
|
||||||
this.Parent.SetSortedChildrenDirty();
|
this.Parent.SetSortedChildrenDirty();
|
||||||
|
|
Loading…
Reference in a new issue