Fix wrong condition test for saving, fixes #3287
This commit is contained in:
parent
0c6ffcf7b0
commit
2cc640dbed
1 changed files with 3 additions and 1 deletions
|
@ -1018,8 +1018,10 @@ void ScriptEditor::_menu_option(int p_option) {
|
||||||
script_create_dialog->popup_centered(Size2(300, 300));
|
script_create_dialog->popup_centered(Size2(300, 300));
|
||||||
} break;
|
} break;
|
||||||
case FILE_SAVE: {
|
case FILE_SAVE: {
|
||||||
if (!_test_script_times_on_disk())
|
|
||||||
|
if (_test_script_times_on_disk())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
editor->save_resource( current->get_edited_script() );
|
editor->save_resource( current->get_edited_script() );
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in a new issue