]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: make reboot-after-install checkbox default to enabled
authorChristoph Heiss <c.heiss@proxmox.com>
Wed, 21 Jun 2023 10:39:12 +0000 (12:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 10:52:43 +0000 (12:52 +0200)
Aligns it with the GUI installer.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs

index 6b5358ffec53adde0b7e2285f9f4d421fd122cdf..8b9cad27002cbe4ce9a708505b52a37c91bd6c08 100644 (file)
@@ -649,7 +649,7 @@ fn summary_dialog(siv: &mut Cursive) -> InstallerView {
         .child(
             LinearLayout::horizontal()
                 .child(DummyView.full_width())
-                .child(Checkbox::new().with_name("reboot-after-install"))
+                .child(Checkbox::new().checked().with_name("reboot-after-install"))
                 .child(
                     TextView::new(" Automatically reboot after successful installation").no_wrap(),
                 )