Skip to content

Commit

Permalink
Merge pull request #10 from AndrewKraevskii/patch-1
Browse files Browse the repository at this point in the history
Fix wrong type on file picking
  • Loading branch information
JustAGod1 authored Mar 13, 2024
2 parents cdb08e6 + d44fc9f commit fa8a6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ fn write_to_file(s: &str, postfix: &str, popup_manager: &mut PopupManager) -> Op
let postfixs = [postfix];
let dialog = FileDialog::new().add_filter("", &postfixs);

let Some(filename) = dialog.pick_file() else {
let Some(filename) = dialog.save_file() else {
popup_manager.open(PopupMessage::new(
"Ошибка выбора файла",
format!("Не могу открыть окно выбора файла"),
Expand Down

0 comments on commit fa8a6f7

Please sign in to comment.