1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-23 17:13:38 +02:00

only mark element parent dirty when setting priority if it actually changed

This commit is contained in:
Ellpeck 2020-06-02 13:40:05 +02:00
parent c7de0322b0
commit 95917e08d6

View file

@ -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();