]> git.proxmox.com Git - pve-installer.git/commitdiff
don't show hd select combobox after raid is chosen
authorOguz Bektas <o.bektas@proxmox.com>
Fri, 25 Jan 2019 15:14:02 +0000 (16:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Jan 2019 15:21:06 +0000 (16:21 +0100)
* we don't want the hd select combobox to show up when user goes back
after choosing raid during initial setup

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
proxinstall

index 96e4ffdf0d156403c92f07bca0c2dce58d9cf4cf..5053d0636a5759ad8c3169f5120408ab2a72daf6 100755 (executable)
@@ -3055,7 +3055,13 @@ sub create_hdsel_view {
        $target_hd_combo->append_text (get_device_desc($devname, $size, $model));
     }
 
-    $target_hd_combo->set_active(0);
+    my $raid = $config_options->{filesys} =~ m/zfs|btrfs/;
+    if ($raid) {
+       $target_hd_label->set_text("Target: $config_options->{filesys} ");
+       $target_hd_combo->set_visible(0);
+       $target_hd_combo->set_no_show_all(1);
+    }
+    $target_hd_combo->set_active($config_options->{chosen_hd} // 0);
     $target_hd_combo->signal_connect(changed => sub {
        $a = shift->get_active;
        my ($disk, $devname) = @{@$hds[$a]};