Merge pull request #58644 from KoBeWi/

This commit is contained in:
Rémi Verschelde 2022-03-01 02:01:35 +01:00 committed by GitHub
commit a09814e4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -762,7 +762,7 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) {
if (p_save && file.is_valid()) {
// Do not try to save internal scripts, but prompt to save in-memory
// scripts which are not saved to disk yet (have empty path).
if (file->is_built_in()) {
if (!file->is_built_in()) {
save_current_script();
}
}