From 907a7f1498f3bac4f8fd1ef1f94cc172b05bb049 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Mon, 19 Aug 2024 18:51:00 +0300 Subject: [PATCH] Blivet UI Button --- src/manual_partitioning_page/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/manual_partitioning_page/mod.rs b/src/manual_partitioning_page/mod.rs index a990fe3..2dd0e9b 100644 --- a/src/manual_partitioning_page/mod.rs +++ b/src/manual_partitioning_page/mod.rs @@ -101,6 +101,18 @@ pub fn manual_partitioning_page( utility_buttons_box.append(&filesystem_table_refresh_button); utility_buttons_box.append(&filesystem_table_validate_button); + open_disk_utility_button.connect_clicked(clone!( + #[weak] + filesystem_table_refresh_button, + move |_| + { + let command = std::process::Command::new("blivet-gui").status(); + if command.unwrap().success() { + filesystem_table_refresh_button.emit_by_name("clicked", &[]) + } + } + ) + ); filesystem_table_refresh_button.connect_clicked(clone!( #[weak]