Fix issue with disconnecting events when font changes

This commit is contained in:
Jonas Bernemann 2019-12-23 13:12:16 +01:00
parent 48edf63330
commit 2f35cf4946

View file

@ -2286,7 +2286,7 @@ void Control::set_theme(const Ref<Theme> &p_theme) {
}
if (data.theme.is_valid()) {
data.theme->connect("changed", this, "_theme_changed");
data.theme->connect("changed", this, "_theme_changed", varray(), CONNECT_DEFERRED);
}
}