diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-08 07:05:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-08 07:05:18 +0100 |
| commit | a28e0b284951b599ed88b9680dc990cef33df9bd (patch) | |
| tree | 7944654a72cb952304e78e64020bf307c08540c1 /editor/plugins/script_editor_plugin.cpp | |
| parent | d084598e8d4296d5ee6e36d257bd1a003a140179 (diff) | |
| parent | f9d11120f781512469718f51b628a79dc951b4c5 (diff) | |
Merge pull request #34905 from YeldhamDev/scriptdiag_minor_fix
Minor fixes for ScriptCreateDialog
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 335466b0c5..d0bd57d658 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1004,8 +1004,8 @@ void ScriptEditor::_menu_option(int p_option) { ScriptEditorBase *current = _get_current_editor(); switch (p_option) { case FILE_NEW: { - script_create_dialog->config("Node", "new_script"); - script_create_dialog->popup_centered(Size2(300, 300) * EDSCALE); + script_create_dialog->config("Node", "new_script", false); + script_create_dialog->popup_centered(); } break; case FILE_NEW_TEXTFILE: { file_dialog->set_mode(EditorFileDialog::MODE_SAVE_FILE); |