You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Make save confirmation a child of last exclusive window of EditorNode before popup
This commit is contained in:
@@ -5701,6 +5701,10 @@ void EditorNode::_cancel_close_scene_tab() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EditorNode::_prepare_save_confirmation_popup() {
|
||||||
|
save_confirmation->reparent(get_last_exclusive_window());
|
||||||
|
}
|
||||||
|
|
||||||
void EditorNode::_toggle_distraction_free_mode() {
|
void EditorNode::_toggle_distraction_free_mode() {
|
||||||
if (EDITOR_GET("interface/editor/separate_distraction_mode")) {
|
if (EDITOR_GET("interface/editor/separate_distraction_mode")) {
|
||||||
int screen = editor_main_screen->get_selected_index();
|
int screen = editor_main_screen->get_selected_index();
|
||||||
@@ -7697,6 +7701,7 @@ EditorNode::EditorNode() {
|
|||||||
save_confirmation->connect(SceneStringName(confirmed), callable_mp(this, &EditorNode::_menu_confirm_current));
|
save_confirmation->connect(SceneStringName(confirmed), callable_mp(this, &EditorNode::_menu_confirm_current));
|
||||||
save_confirmation->connect("custom_action", callable_mp(this, &EditorNode::_discard_changes));
|
save_confirmation->connect("custom_action", callable_mp(this, &EditorNode::_discard_changes));
|
||||||
save_confirmation->connect("canceled", callable_mp(this, &EditorNode::_cancel_close_scene_tab));
|
save_confirmation->connect("canceled", callable_mp(this, &EditorNode::_cancel_close_scene_tab));
|
||||||
|
save_confirmation->connect("about_to_popup", callable_mp(this, &EditorNode::_prepare_save_confirmation_popup));
|
||||||
|
|
||||||
gradle_build_manage_templates = memnew(ConfirmationDialog);
|
gradle_build_manage_templates = memnew(ConfirmationDialog);
|
||||||
gradle_build_manage_templates->set_text(TTR("Android build template is missing, please install relevant templates."));
|
gradle_build_manage_templates->set_text(TTR("Android build template is missing, please install relevant templates."));
|
||||||
|
|||||||
@@ -566,6 +566,8 @@ private:
|
|||||||
void _scene_tab_closed(int p_tab);
|
void _scene_tab_closed(int p_tab);
|
||||||
void _cancel_close_scene_tab();
|
void _cancel_close_scene_tab();
|
||||||
|
|
||||||
|
void _prepare_save_confirmation_popup();
|
||||||
|
|
||||||
void _inherit_request(String p_file);
|
void _inherit_request(String p_file);
|
||||||
void _instantiate_request(const Vector<String> &p_files);
|
void _instantiate_request(const Vector<String> &p_files);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user