diff --git a/MLEM.Ui/Elements/Element.cs b/MLEM.Ui/Elements/Element.cs index b3c8c05..10a7cc1 100644 --- a/MLEM.Ui/Elements/Element.cs +++ b/MLEM.Ui/Elements/Element.cs @@ -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();