summaryrefslogtreecommitdiff
path: root/scene/gui/label.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-02-10 20:06:14 -0300
committerGitHub <noreply@github.com>2021-02-10 20:06:14 -0300
commitad293a82f1fc2e4baa35f54b9b8038df72d23737 (patch)
tree7edbd352cf34d87b4d8e604c1730251c38131e19 /scene/gui/label.cpp
parente8f73124a7d97abc94cea3cf7fe5b5614f61a448 (diff)
parent1aa2823fa32c7a4b41d806418ec99949fc44ffb3 (diff)
Merge pull request #45879 from reduz/remove-change-notify
Removed _change_notify(property)
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r--scene/gui/label.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index 540d238b74..453ecc802c 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -538,7 +538,6 @@ void Label::set_visible_characters(int p_amount) {
if (get_total_character_count() > 0) {
percent_visible = (float)p_amount / (float)get_total_character_count();
}
- _change_notify("percent_visible");
update();
}
@@ -555,7 +554,6 @@ void Label::set_percent_visible(float p_percent) {
visible_chars = get_total_character_count() * p_percent;
percent_visible = p_percent;
}
- _change_notify("visible_chars");
update();
}
@@ -610,7 +608,7 @@ bool Label::_set(const StringName &p_name, const Variant &p_value) {
update();
}
}
- _change_notify();
+ notify_property_list_changed();
return true;
}