Properly warn about the effects of changing an import type, as well as force editor restart. Fixes #23874
This commit is contained in:
parent
6d4d55cd42
commit
5bd3f72878
6 changed files with 90 additions and 8 deletions
|
|
@ -1108,12 +1108,15 @@ void EditorNode::_save_scene(String p_file, int idx) {
|
|||
}
|
||||
}
|
||||
|
||||
void EditorNode::save_all_scenes_and_restart() {
|
||||
void EditorNode::save_all_scenes() {
|
||||
|
||||
_menu_option_confirm(RUN_STOP, true);
|
||||
exiting = true;
|
||||
|
||||
_save_all_scenes();
|
||||
}
|
||||
|
||||
void EditorNode::restart_editor() {
|
||||
|
||||
exiting = true;
|
||||
|
||||
String to_reopen;
|
||||
if (get_tree()->get_edited_scene_root()) {
|
||||
|
|
@ -2305,7 +2308,8 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|||
ProjectSettings::get_singleton()->set("rendering/quality/driver/driver_name", video_driver_request);
|
||||
ProjectSettings::get_singleton()->save();
|
||||
|
||||
save_all_scenes_and_restart();
|
||||
save_all_scenes();
|
||||
restart_editor();
|
||||
} break;
|
||||
default: {
|
||||
if (p_option >= IMPORT_PLUGIN_BASE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue