فهرست منبع

Fix wrong condition test for saving, fixes #3287

Juan Linietsky 9 سال پیش
والد
کامیت
2cc640dbed
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      tools/editor/plugins/script_editor_plugin.cpp

+ 3 - 1
tools/editor/plugins/script_editor_plugin.cpp

@@ -1018,8 +1018,10 @@ void ScriptEditor::_menu_option(int p_option) {
 				script_create_dialog->popup_centered(Size2(300, 300));
 			} break;
 			case FILE_SAVE: {
-				if (!_test_script_times_on_disk())
+
+				if (_test_script_times_on_disk())
 					return;
+
 				editor->save_resource( current->get_edited_script() );
 
 			} break;