]> git.proxmox.com Git - pve-installer.git/commitdiff
gui: make abort button unsensitive on last panel
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Wed, 21 Jun 2023 09:57:42 +0000 (11:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Jun 2023 10:49:29 +0000 (12:49 +0200)
It makes no sense from a UX point of view to abort an install that's
already finished.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
proxinstall

index 3d2039f9f7ca9cb6a06c07581e7ae6b78d55427e..8d2ad6b134b6d67f90c6fbb30401ef18c3be90a8 100755 (executable)
@@ -225,6 +225,7 @@ sub create_main_window {
     $gtk_state->{next_btn} = $next_btn;
     $gtk_state->{progress_bar} = Gtk3::ProgressBar->new();
     $gtk_state->{progress_status} = Gtk3::Label->new('');
+    $gtk_state->{abort_btn} = $abort;
 
     Proxmox::UI::init_gtk($gtk_state, $iso_env);
 
@@ -1534,6 +1535,10 @@ sub create_extract_view {
        return $raw_html;
     };
 
+    # It does not make sense to Abort the install at this point, whether it
+    # succeded or failed makes no difference.
+    $gtk_state->{abort_btn}->set_sensitive(0);
+
     if ($err) {
        Proxmox::UI::display_html("fail.htm");
        # suppress "empty" error as we got some case where the user choose to abort on a prompt,