Skip to content

Commit

Permalink
forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Jan 27, 2023
1 parent d05fddf commit 48a942a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/Widgets/TextField.vala
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@
support_label = new Gtk.Label (support_text);
support_label.add_css_class ("caption");
support_label.add_css_class ("dim-label");

if(support_text == null) {
support_label.visible = false;
} else {
support_label.visible = true;
}

changed.connect (() => {
entry.changed.connect (() => {
Expand Down Expand Up @@ -180,6 +174,13 @@
notify["visibility"].connect (() => {
entry.visibility = visibility;
});
notify["support-text"].connect (() => {
if(support_text == null) {
support_label.visible = false;
} else {
support_label.visible = true;
}
});
}

private void on_changed () {
Expand Down

0 comments on commit 48a942a

Please sign in to comment.