mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Merge pull request #34561 from NoFr1ends/fix-disconnect-in-theme-change
Fix issue with disconnecting events when font changes
This commit is contained in:
commit
9ef9370904
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user