From 8b7343c8f86a8e1e1ab77412c8fb693870a5e84f Mon Sep 17 00:00:00 2001 From: ochibani <11yzyv86j@relay.firefox.com> Date: Thu, 19 Oct 2023 02:09:33 +0200 Subject: [PATCH] add auto hide --- interfaces/main.ui | 1 + src/main.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/interfaces/main.ui b/interfaces/main.ui index 08d97a4..641ef69 100644 --- a/interfaces/main.ui +++ b/interfaces/main.ui @@ -432,6 +432,7 @@ True True + 13 label 0 diff --git a/src/main.rs b/src/main.rs index f86ba36..097844c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -476,6 +476,7 @@ pub fn build_ui(application: &Application) { let _delay_window = delay_window.clone(); let _delay_window_button = delay_window_button.clone(); let mut _ffmpeg_record_interface = ffmpeg_record_interface.clone(); + let _main_window = main_window.clone(); let _play_button = play_button.clone(); let _record_button = record_button.clone(); let _record_time_label = record_time_label.clone(); @@ -506,6 +507,7 @@ pub fn build_ui(application: &Application) { _ => { start_timer(record_time_label.clone()); record_time_label.set_visible(true); + _main_window.minimize(); _play_button.hide(); _record_button.hide(); _stop_button.show();