[pve-devel] [PATCH installer] make harddisk options dialog modal
Maximiliano Sandoval
m.sandoval at proxmox.com
Tue Jun 20 11:34:31 CEST 2023
Modal dialogs block the user from interacting with the main window.
We already do this with message dialogs so for consistency sake, we set
the harddisk options dialog as modal. Note that one can see weird
behaviors when interacting with the window behind the dialog in certain
scenarios.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
proxinstall | 2 ++
1 file changed, 2 insertions(+)
diff --git a/proxinstall b/proxinstall
index fe0239f..f32abd2 100755
--- a/proxinstall
+++ b/proxinstall
@@ -2291,6 +2291,8 @@ sub create_hdoption_view {
my $dialog = Gtk3::Dialog->new();
$dialog->set_title("Harddisk options");
+ $dialog->set_modal(1);
+ $dialog->set_transient_for($window);
$dialog->add_button("_OK", 1);
--
2.39.2
More information about the pve-devel
mailing list