mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove NOTIFICATION_ENTER_TREE when NOTIFICATION_THEME_CHANGED is used
This commit is contained in:
parent
1a1cc0f7b0
commit
d32d2e9b51
37 changed files with 7 additions and 72 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue