mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2025-04-02 07:44:54 +03:00
update is_overwrite
This commit is contained in:
parent
98230d76c1
commit
865373a160
@ -138,6 +138,7 @@ impl Ffmpeg {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
ffmpeg_command.overwrite();
|
ffmpeg_command.overwrite();
|
||||||
|
ffmpeg_command.print_command();
|
||||||
|
|
||||||
// Sleep for delay
|
// Sleep for delay
|
||||||
sleep(Duration::from_secs(self.record_delay as u64));
|
sleep(Duration::from_secs(self.record_delay as u64));
|
||||||
|
@ -429,7 +429,7 @@
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">True</property>
|
<property name="can-focus">True</property>
|
||||||
<property name="receives-default">False</property>
|
<property name="receives-default">False</property>
|
||||||
<property name="active">True</property>
|
<property name="active">False</property>
|
||||||
<property name="has-tooltip">True</property>
|
<property name="has-tooltip">True</property>
|
||||||
<layout>
|
<layout>
|
||||||
<property name="column">0</property>
|
<property name="column">0</property>
|
||||||
|
@ -1113,7 +1113,7 @@ fn build_ui(application: &Application, error_dialog: MessageDialog, error_messag
|
|||||||
|
|
||||||
// Overwrite file if exists or not
|
// Overwrite file if exists or not
|
||||||
fn is_overwrite(filename: &str, window: Window) -> bool {
|
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 {
|
if is_file_already_exists {
|
||||||
let message_dialog = adw::gtk::MessageDialog::new(
|
let message_dialog = adw::gtk::MessageDialog::new(
|
||||||
Some(&window),
|
Some(&window),
|
||||||
|
Loading…
Reference in New Issue
Block a user