From a108129587190fcdeede6613fa43fa5c308c2197 Mon Sep 17 00:00:00 2001 From: david-swift Date: Thu, 4 Jan 2024 15:16:44 +0100 Subject: [PATCH] Make the entry row a bit safer --- Sources/Adwaita/View/Forms/EntryRow.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/Adwaita/View/Forms/EntryRow.swift b/Sources/Adwaita/View/Forms/EntryRow.swift index f76ab92..9b06583 100644 --- a/Sources/Adwaita/View/Forms/EntryRow.swift +++ b/Sources/Adwaita/View/Forms/EntryRow.swift @@ -72,7 +72,9 @@ public struct EntryRow: Widget { _ = row.addSuffix(suffixContent.view) } _ = row.changeHandler { - text = row.contents() + if row.contents() != text { + text = row.contents() + } } update(row: row) return .init(row, content: [prefixID: [prefixContent], suffixID: [suffixContent]])