From 9b500ab53c4aff51d93a87f412f66a8dcc3bb227 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Mon, 3 Apr 2023 18:01:11 +0200 Subject: Fix premature theme item access in editor tools --- editor/editor_run_native.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/editor_run_native.cpp') diff --git a/editor/editor_run_native.cpp b/editor/editor_run_native.cpp index 0628dc7116..815d4fab9c 100644 --- a/editor/editor_run_native.cpp +++ b/editor/editor_run_native.cpp @@ -40,6 +40,7 @@ void EditorRunNative::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: { remote_debug->set_icon(get_theme_icon(SNAME("PlayRemote"), SNAME("EditorIcons"))); } break; + case NOTIFICATION_PROCESS: { bool changed = EditorExport::get_singleton()->poll_export_platforms() || first; @@ -155,7 +156,6 @@ bool EditorRunNative::is_deploy_debug_remote_enabled() const { EditorRunNative::EditorRunNative() { remote_debug = memnew(MenuButton); remote_debug->get_popup()->connect("id_pressed", callable_mp(this, &EditorRunNative::run_native)); - remote_debug->set_icon(get_theme_icon(SNAME("PlayRemote"), SNAME("EditorIcons"))); remote_debug->set_tooltip_text(TTR("Remote Debug")); remote_debug->set_disabled(true); -- cgit v1.2.3