Use sync API on macos
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user