Fix scripts not saving when closing
This commit is contained in:
parent
039ffda991
commit
f653107764
@ -762,7 +762,7 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) {
|
|||||||
if (p_save && file.is_valid()) {
|
if (p_save && file.is_valid()) {
|
||||||
// Do not try to save internal scripts, but prompt to save in-memory
|
// Do not try to save internal scripts, but prompt to save in-memory
|
||||||
// scripts which are not saved to disk yet (have empty path).
|
// scripts which are not saved to disk yet (have empty path).
|
||||||
if (file->is_built_in()) {
|
if (!file->is_built_in()) {
|
||||||
save_current_script();
|
save_current_script();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user