]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: implement auto-reboot after installation
authorChristoph Heiss <c.heiss@proxmox.com>
Wed, 21 Jun 2023 11:17:15 +0000 (13:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 13:09:11 +0000 (15:09 +0200)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs

index 90da81d2bed7f9a0b7ca7a509a1e9772b26ae1d3..49c44d4aefa21405f76c3fd8569980c4e96121b1 100644 (file)
@@ -801,7 +801,7 @@ fn install_progress_dialog(siv: &mut Cursive) -> InstallerView {
                                 siv.add_layer(
                                     Dialog::text(msg)
                                         .title(title)
-                                        .button("Reboot now", |s| s.quit()),
+                                        .button("Reboot now", Cursive::quit),
                                 );
 
                                 let autoreboot = siv