]> git.proxmox.com Git - pve-installer.git/commitdiff
stop main loop when closing the main window
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Fri, 16 Jun 2023 10:57:43 +0000 (12:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Jun 2023 07:34:55 +0000 (09:34 +0200)
Without this change closing the main window does not exit the main loop.

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

index 28d3347fd5284933fb92c4ea77e4daf4b04666c5..21c7201eb388430cf957cc99b99346a8fad4c04e 100755 (executable)
@@ -1501,6 +1501,7 @@ sub create_main_window {
     $window->signal_connect(map => sub { $window->set_resizable(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::Box->new('vertical', 0);