From aa9213a3107feed04e88f81a7183ad5f2e58715c Mon Sep 17 00:00:00 2001 From: Salem Yaslem Date: Sun, 15 Oct 2023 03:23:56 +0300 Subject: [PATCH] little improvements --- interfaces/main.ui | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/main.ui b/interfaces/main.ui index eb00b39..919036a 100644 --- a/interfaces/main.ui +++ b/interfaces/main.ui @@ -92,7 +92,7 @@ vertical - + True 0.0 True diff --git a/src/main.rs b/src/main.rs index 165959e..f86ba36 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,7 +93,7 @@ pub fn build_ui(application: &Application) { let mouse_switch: CheckButton = builder.object("mouseswitch").unwrap(); let play_button: Button = builder.object("playbutton").unwrap(); let progress_dialog: MessageDialog = builder.object("progress_dialog").unwrap(); - let progressbar: ProgressBar = builder.object("progressbar").unwrap(); + let progress_bar: ProgressBar = builder.object("progress_bar").unwrap(); let record_button: Button = builder.object("recordbutton").unwrap(); let record_time_label: Label = builder.object("record_time_label").unwrap(); let screen_grab_button: ToggleButton = builder.object("screen_grab_button").unwrap(); @@ -466,7 +466,7 @@ pub fn build_ui(application: &Application) { audio_process: None, saved_filename: None, unbound: None, - progress_widget: ProgressWidget::new(progress_dialog, progressbar), + progress_widget: ProgressWidget::new(progress_dialog, progress_bar), window: main_window.clone(), record_delay: delay_spin, record_wayland: glib::MainContext::default().block_on(WaylandRecorder::new())