update is_overwrite

This commit is contained in:
ochibani 2025-01-03 17:09:34 +02:00
parent 98230d76c1
commit 865373a160
3 changed files with 3 additions and 2 deletions

View File

@ -138,6 +138,7 @@ impl Ffmpeg {
},
]);
ffmpeg_command.overwrite();
ffmpeg_command.print_command();
// Sleep for delay
sleep(Duration::from_secs(self.record_delay as u64));

View File

@ -429,7 +429,7 @@
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="active">True</property>
<property name="active">False</property>
<property name="has-tooltip">True</property>
<layout>
<property name="column">0</property>

View File

@ -1113,7 +1113,7 @@ fn build_ui(application: &Application, error_dialog: MessageDialog, error_messag
// Overwrite file if exists or not
fn is_overwrite(filename: &str, window: Window) -> bool {
let is_file_already_exists = Path::new(filename).try_exists().is_ok();
let is_file_already_exists = Path::new(filename).try_exists().unwrap();
if is_file_already_exists {
let message_dialog = adw::gtk::MessageDialog::new(
Some(&window),