public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH installer] gui: only run next button callback if there is one
@ 2026-06-19  7:50 Maximiliano Sandoval
  0 siblings, 0 replies; only message in thread
From: Maximiliano Sandoval @ 2026-06-19  7:50 UTC (permalink / raw)
  To: pve-devel

When testing the GUI installer via `make check-pve` the traceroute
command can time out, during this time the callback is not yet defined
and pressing the Next button will result in warnings in the CLI.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 proxinstall | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxinstall b/proxinstall
index 49b1612..91fcc4a 100755
--- a/proxinstall
+++ b/proxinstall
@@ -165,7 +165,7 @@ sub create_main_window {
     $next_btn->signal_connect(
         clicked => sub {
             Proxmox::Install::reset_last_display_change();
-            $gtk_state->{next_btn_callback}->();
+            $gtk_state->{next_btn_callback}->() if $gtk_state->{next_btn_callback};
         },
     );
     $cmdbox->pack_end($next_btn, 0, 0, 10);
-- 
2.47.3





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-19  7:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-19  7:50 [PATCH installer] gui: only run next button callback if there is one Maximiliano Sandoval

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal