Use sync API on macos

This commit is contained in:
2026-08-12 19:45:59 -04:00
parent a926f19f79
commit e15659f6d2
3 changed files with 46 additions and 18 deletions
+2 -2
View File
@@ -64,10 +64,10 @@ impl ProfileWindow {
let bytes_receiver = self.profiler.finish_recording();
let file = self
.file_picker
.new_dialog()
.save_file_dialog()
.add_filter("Profiler files", &["json"])
.set_file_name("profile.json")
.save_file();
.open();
if let Some(path) = file {
let bytes = pollster::block_on(bytes_receiver)?;
let _ = fs::remove_file(&path);