Browse Source

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.
Hugo Locurcio 5 năm trước cách đây
mục cha
commit
81f33df84b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/script_editor_debugger.cpp

+ 1 - 0
editor/script_editor_debugger.cpp

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