Remove NOTIFICATION_ENTER_TREE when NOTIFICATION_THEME_CHANGED is used

This commit is contained in:
kobewi 2024-03-21 14:39:50 +01:00
parent 1a1cc0f7b0
commit d32d2e9b51
37 changed files with 7 additions and 72 deletions

View file

@ -43,8 +43,7 @@ void AudioStreamEditor::_notification(int p_what) {
case NOTIFICATION_READY: {
AudioStreamPreviewGenerator::get_singleton()->connect(SNAME("preview_updated"), callable_mp(this, &AudioStreamEditor::_preview_changed));
} break;
case NOTIFICATION_THEME_CHANGED:
case NOTIFICATION_ENTER_TREE: {
case NOTIFICATION_THEME_CHANGED: {
Ref<Font> font = get_theme_font(SNAME("status_source"), EditorStringName(EditorFonts));
_current_label->add_theme_font_override(SceneStringName(font), font);