Allow saving anywhere when exporting CSV measures from the profiler

Previously, the CSV file could only be saved in `res://`. Since this is
an editor tool, it makes sense to allow saving anywhere on
the filesystem.
This commit is contained in:
Hugo Locurcio 2020-01-24 12:18:00 +01:00
parent 1c6d1fcf95
commit 81f33df84b
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 1 additions and 0 deletions

View File

@ -1622,6 +1622,7 @@ void ScriptEditorDebugger::_output_clear() {
void ScriptEditorDebugger::_export_csv() { void ScriptEditorDebugger::_export_csv() {
file_dialog->set_mode(EditorFileDialog::MODE_SAVE_FILE); file_dialog->set_mode(EditorFileDialog::MODE_SAVE_FILE);
file_dialog->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
file_dialog_mode = SAVE_CSV; file_dialog_mode = SAVE_CSV;
file_dialog->popup_centered_ratio(); file_dialog->popup_centered_ratio();
} }