summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRindbee <idleman@yeah.net>2022-10-03 18:41:56 +0800
committerRindbee <idleman@yeah.net>2022-10-03 18:48:58 +0800
commit67e126bad40740a292e8633c1c0e12c883cd2951 (patch)
treead39a99da6fb4a4afbb6f842048222fbd9a7a95b /editor/plugins/script_editor_plugin.cpp
parentd331b803b8e63b0dab406a12c21805a17ee0a6a8 (diff)
downloadredot-engine-67e126bad40740a292e8633c1c0e12c883cd2951.tar.gz
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.
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 4dcd0573e6..c4d48d7cbe 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;