From 4b817a565cab8af648c88cfc7ab6481e86ee3625 Mon Sep 17 00:00:00 2001 From: Aaron Record Date: Fri, 29 Jul 2022 23:35:34 -0600 Subject: Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGED --- scene/gui/code_edit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scene/gui/code_edit.cpp') diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index e54ba7ce13..b9760499ef 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -36,8 +36,7 @@ void CodeEdit::_notification(int p_what) { switch (p_what) { - case NOTIFICATION_THEME_CHANGED: - case NOTIFICATION_ENTER_TREE: { + case NOTIFICATION_THEME_CHANGED: { style_normal = get_theme_stylebox(SNAME("normal")); font = get_theme_font(SNAME("font")); -- cgit v1.2.3