[pve-devel] [PATCH installer 2/2] stop main loop when closing the main window

Maximiliano Sandoval m.sandoval at proxmox.com
Fri Jun 16 12:57:43 CEST 2023


Without this change closing the main window does not exit the main loop.

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

diff --git a/proxinstall b/proxinstall
index 701133b..4f3c85b 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1501,6 +1501,7 @@ sub create_main_window {
     $window->set_has_resize_grip(0);
     $window->fullscreen() if !is_test_mode();
     $window->set_decorated(0) if !is_test_mode();
+    $window->signal_connect(destroy => sub { Gtk3->main_quit(); });
 
     my $vbox = Gtk3::VBox->new(0, 0);
 
-- 
2.39.2






More information about the pve-devel mailing list