Ver Fonte

Fix scripts not saving when closing

kobewi há 3 anos atrás
pai
commit
f653107764
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      editor/plugins/script_editor_plugin.cpp

+ 1 - 1
editor/plugins/script_editor_plugin.cpp

@@ -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();
 			}
 		}