diff options
author | Yuri Sizov <yuris@humnom.net> | 2022-09-03 14:55:13 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2022-09-03 14:55:13 +0300 |
commit | 41eabca0fb63b8bc31ee448cb77b73aa0762dd8c (patch) | |
tree | ecd970c948b15a948f0e183343754c8e7f1f5713 /scene/main | |
parent | b8977ca333fd0334669de0253f86abf6d401256a (diff) |
Un-defer the initial theme changed notification in Window
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/window.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index 84e4162c00..04f56bb874 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -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: { |