Fix "Save All" option in Script editor.
Also removes some old code. fixes #6667
This commit is contained in:
parent
3ecd8560fd
commit
ac80e68d2f
1 changed files with 1 additions and 20 deletions
|
@ -755,29 +755,10 @@ void ScriptEditor::_menu_option(int p_option) {
|
||||||
} break;
|
} break;
|
||||||
case FILE_SAVE_ALL: {
|
case FILE_SAVE_ALL: {
|
||||||
|
|
||||||
if (!_test_script_times_on_disk())
|
if (_test_script_times_on_disk())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
save_all_scripts();
|
save_all_scripts();
|
||||||
|
|
||||||
#if 0
|
|
||||||
for(int i=0;i<tab_container->get_child_count();i++) {
|
|
||||||
|
|
||||||
ScriptTextEditor *se = tab_container->get_child(i)->cast_to<ScriptTextEditor>();
|
|
||||||
if (!se)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
|
|
||||||
Ref<Script> script = se->get_edited_script();
|
|
||||||
|
|
||||||
if (script->get_path()=="" || script->get_path().find("local://")!=-1 || script->get_path().find("::")!=-1)
|
|
||||||
continue; //internal script, who cares
|
|
||||||
|
|
||||||
|
|
||||||
editor->save_resource( script );
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
} break;
|
} break;
|
||||||
case FILE_IMPORT_THEME: {
|
case FILE_IMPORT_THEME: {
|
||||||
file_dialog->set_mode(EditorFileDialog::MODE_OPEN_FILE);
|
file_dialog->set_mode(EditorFileDialog::MODE_OPEN_FILE);
|
||||||
|
|
Loading…
Reference in a new issue