Skip to content

Commit 8119c93

Browse files
committed
Refactor View.Text setter to use SetTextDirect
Replaces direct field and UI updates in the View.Text property setter with a call to SetTextDirect(value). This centralizes text update logic, improving maintainability and reducing code duplication.
1 parent 7136a23 commit 8119c93

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Terminal.Gui/ViewBase/View.Text.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ public string Text
7474
return;
7575
}
7676

77-
_text = value;
78-
79-
UpdateTextFormatterText ();
80-
SetNeedsLayout ();
77+
SetTextDirect (value);
8178

8279
OnTextChanged ();
8380
}

0 commit comments

Comments
 (0)