Skip to content

Commit 80457e5

Browse files
committed
Fix: Use correct File dialog filter
1 parent a1841a2 commit 80457e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: tauri/src-tauri/src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ fn export_bindings_csv(
155155
export_bindings_to_writer(ocel, &bindings, &mut writer, &options).unwrap();
156156
FileDialogBuilder::new()
157157
.set_title("Save Filtered OCEL")
158-
.add_filter("CSV Files", &["csv"])
158+
.add_filter("CSV/XLSX Files", &[
159+
match options.format {
160+
TableExportFormat::CSV => "csv",
161+
TableExportFormat::XLSX => "xlsx",
162+
}])
159163
.set_file_name(&format!(
160164
"situation-table.{}",
161165
match options.format {

0 commit comments

Comments
 (0)