Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Make the entry row a bit safer
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Jan 4, 2024
1 parent eea8428 commit a108129
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Adwaita/View/Forms/EntryRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down

0 comments on commit a108129

Please sign in to comment.