From f3be74b3283b00fc53a7800065099d544172e874 Mon Sep 17 00:00:00 2001 From: Maxim Logaev Date: Tue, 26 Mar 2024 16:31:21 +0300 Subject: [PATCH] Fixed default encryption dialog style Signed-off-by: Maxim Logaev --- main/data/default_encryption_dialog.ui | 16 +++++++++++----- main/src/ui/conversation_view_controller.vala | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/main/data/default_encryption_dialog.ui b/main/data/default_encryption_dialog.ui index 08a29660..5a45ed0c 100644 --- a/main/data/default_encryption_dialog.ui +++ b/main/data/default_encryption_dialog.ui @@ -1,19 +1,20 @@ - - + True True 320 260 - - - + False False vertical + 20 + 20 + 20 + 20 True @@ -67,6 +68,11 @@ Please select an option to start this conversation with. Choosing one of the enc True True True + 20 + diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala index 51ad8daf..fadd34dd 100644 --- a/main/src/ui/conversation_view_controller.vala +++ b/main/src/ui/conversation_view_controller.vala @@ -144,6 +144,7 @@ public class ConversationViewController : Object { var omemo_radio = selection_dialog_builder.get_object("omemo") as CheckButton; var openpgp_radio = selection_dialog_builder.get_object("openpgp") as CheckButton; var none_radio = selection_dialog_builder.get_object("none") as CheckButton; + selection_dialog.set_transient_for(view.get_root() as Window); Encryption selected_default = UNKNOWN; accept_button.sensitive = false;