]> git.proxmox.com Git - pve-installer.git/commitdiff
followup: really remember last HD selected
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Jan 2019 15:24:15 +0000 (16:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Jan 2019 15:24:17 +0000 (16:24 +0100)
This was done correctly earlier, but the remembering part disappeared
on rebase, so followup, but do not save it in config_options.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index 5053d0636a5759ad8c3169f5120408ab2a72daf6..74b76f10814e8e63005fadf90115bf456f369635 100755 (executable)
@@ -3031,6 +3031,7 @@ sub get_btrfs_raid_setup {
     return ($devlist, $mode);
 }
 
+my $last_hd_selected = 0;
 sub create_hdsel_view {
 
     $prev_btn->set_sensitive(1); # enable previous button at this point
@@ -3061,10 +3062,11 @@ sub create_hdsel_view {
        $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->set_active($last_hd_selected);
     $target_hd_combo->signal_connect(changed => sub {
        $a = shift->get_active;
        my ($disk, $devname) = @{@$hds[$a]};
+       $last_hd_selected = 0;
        $target_hd = $devname;
     });