summaryrefslogtreecommitdiff
path: root/editor/debugger
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-06-26 02:23:59 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-06-26 02:26:38 +0200
commitca7e92ed39587075d71a80271855234d6167e503 (patch)
treefdb392de16563749958cbc7bdce41eb32c6f563f /editor/debugger
parent295a79c12540f0cb26e73404b641cd4848a2c1a7 (diff)
Request attention on the editor window when done recording a movie
Recording a movie can take a long time, so the user may not be paying attention to the editor while leaving a movie rendering in the background. This also allows editor plugins to access the state of Movie Maker mode within the editor (and set it).
Diffstat (limited to 'editor/debugger')
-rw-r--r--editor/debugger/editor_debugger_node.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/debugger/editor_debugger_node.cpp b/editor/debugger/editor_debugger_node.cpp
index e13af59d69..517baf4fcd 100644
--- a/editor/debugger/editor_debugger_node.cpp
+++ b/editor/debugger/editor_debugger_node.cpp
@@ -224,6 +224,12 @@ void EditorDebuggerNode::stop() {
if (server.is_valid()) {
server->stop();
EditorNode::get_log()->add_message("--- Debugging process stopped ---", EditorLog::MSG_TYPE_EDITOR);
+
+ if (EditorNode::get_singleton()->is_movie_maker_enabled()) {
+ // Request attention in case the user was doing something else when movie recording is finished.
+ DisplayServer::get_singleton()->window_request_attention();
+ }
+
server.unref();
}
// Also close all debugging sessions.