mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Un-defer the initial theme changed notification in Window
This commit is contained in:
parent
b8977ca333
commit
41eabca0fb
1 changed files with 1 additions and 3 deletions
|
|
@ -865,9 +865,7 @@ void Window::_notification(int p_what) {
|
|||
RS::get_singleton()->viewport_set_active(get_viewport_rid(), true);
|
||||
}
|
||||
|
||||
// Need to defer here, because theme owner information might be set in
|
||||
// add_child_notify, which doesn't get called until right after this.
|
||||
call_deferred(SNAME("notification"), NOTIFICATION_THEME_CHANGED);
|
||||
notification(NOTIFICATION_THEME_CHANGED);
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue