File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -5730,6 +5730,10 @@ void EditorNode::_cancel_close_scene_tab() {
57305730 }
57315731}
57325732
5733+ void EditorNode::_prepare_save_confirmation_popup () {
5734+ save_confirmation->reparent (get_last_exclusive_window ());
5735+ }
5736+
57335737void EditorNode::_toggle_distraction_free_mode () {
57345738 if (EDITOR_GET (" interface/editor/separate_distraction_mode" )) {
57355739 int screen = editor_main_screen->get_selected_index ();
@@ -7737,6 +7741,7 @@ EditorNode::EditorNode() {
77377741 save_confirmation->connect (SceneStringName (confirmed), callable_mp (this , &EditorNode::_menu_confirm_current));
77387742 save_confirmation->connect (" custom_action" , callable_mp (this , &EditorNode::_discard_changes));
77397743 save_confirmation->connect (" canceled" , callable_mp (this , &EditorNode::_cancel_close_scene_tab));
7744+ save_confirmation->connect (" about_to_popup" , callable_mp (this , &EditorNode::_prepare_save_confirmation_popup));
77407745
77417746 gradle_build_manage_templates = memnew (ConfirmationDialog);
77427747 gradle_build_manage_templates->set_text (TTR (" Android build template is missing, please install relevant templates." ));
Original file line number Diff line number Diff line change @@ -576,6 +576,8 @@ class EditorNode : public Node {
576576 void _scene_tab_closed (int p_tab);
577577 void _cancel_close_scene_tab ();
578578
579+ void _prepare_save_confirmation_popup ();
580+
579581 void _inherit_request (String p_file);
580582 void _instantiate_request (const Vector<String> &p_files);
581583
You can’t perform that action at this time.
0 commit comments