浏览代码

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 年之前
父节点
当前提交
81f33df84b
共有 1 个文件被更改,包括 1 次插入0 次删除
  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() {
 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();
 }
 }