diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-31 23:03:21 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-31 23:03:21 +0100 |
commit | 778ffce1e35b508cab26a9e7028621b2606cfe15 (patch) | |
tree | f70e0bf2acd4ee9d25e0e60af5535f0ad41f79ef /editor/debugger | |
parent | 887a6c79cd07e670e98c6ae2c8e00b539037c37c (diff) | |
parent | ca7e92ed39587075d71a80271855234d6167e503 (diff) |
Merge pull request #62416 from Calinou/movie-maker-request-attention-on-finish
Request attention on the editor window when done recording a movie
Diffstat (limited to 'editor/debugger')
-rw-r--r-- | editor/debugger/editor_debugger_node.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/debugger/editor_debugger_node.cpp b/editor/debugger/editor_debugger_node.cpp index edcbcaf963..68aff328ed 100644 --- a/editor/debugger/editor_debugger_node.cpp +++ b/editor/debugger/editor_debugger_node.cpp @@ -229,6 +229,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. |