From 67e126bad40740a292e8633c1c0e12c883cd2951 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Mon, 3 Oct 2022 18:41:56 +0800 Subject: [PATCH] Fix the file newer dialog that keeps popping up The focus is switching back and forth between the popup dialog and the editor window, causing an infinite loop. Fix #65824. --- editor/plugins/script_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 4dcd0573e65..c4d48d7cbea 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1613,7 +1613,7 @@ void ScriptEditor::_notification(int p_what) { EditorNode::get_singleton()->disconnect("stop_pressed", callable_mp(this, &ScriptEditor::_editor_stop)); } break; - case NOTIFICATION_WM_WINDOW_FOCUS_IN: { + case NOTIFICATION_APPLICATION_FOCUS_IN: { _test_script_times_on_disk(); _update_modified_scripts_for_external_editor(); } break;