From d8c133691cb838e80d3d5ba73640cbc8b62ecd1b Mon Sep 17 00:00:00 2001 From: ochibani <11yzyv86j@relay.firefox.com> Date: Thu, 2 Jan 2025 23:40:48 +0200 Subject: [PATCH] update main_window close --- gui/src/ui.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gui/src/ui.rs b/gui/src/ui.rs index 5646a00..06c8fad 100644 --- a/gui/src/ui.rs +++ b/gui/src/ui.rs @@ -1086,10 +1086,6 @@ fn build_ui(application: &Application, error_dialog: MessageDialog, error_messag // Stop recording before close the application let mut _ffmpeg_record_interface = ffmpeg_record_interface.clone(); main_window.connect_close_request(move |main_window| { - let file_name = _ffmpeg_record_interface.borrow_mut().filename.clone(); - if Path::new(&file_name).try_exists().is_ok() { - std::fs::remove_file(file_name).unwrap(); - } if _ffmpeg_record_interface.borrow_mut().video_process.is_some() { std::process::Command::new("kill") .arg(format!(