From f8ebbdacdff1855c48797b85eaa969192378f555 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 23 Dec 2022 15:08:40 +0100 Subject: [PATCH] fixed text not being checked for changes anymore when set explicitly (since f8567cf) --- MLEM.Ui/Elements/Paragraph.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Paragraph.cs b/MLEM.Ui/Elements/Paragraph.cs index 11462c8..d73228c 100644 --- a/MLEM.Ui/Elements/Paragraph.cs +++ b/MLEM.Ui/Elements/Paragraph.cs @@ -76,7 +76,10 @@ namespace MLEM.Ui.Elements { this.CheckTextChange(); return this.displayedText; } - set => this.explicitlySetText = value; + set { + this.explicitlySetText = value; + this.CheckTextChange(); + } } /// /// If this paragraph should automatically adjust its width based on the width of the text within it