From ce17426063f0cf04b9e28297745186f77ca40c65 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Sat, 20 Jan 2024 13:27:32 +0100 Subject: [PATCH] Change order in login menu --- ui/settings.py | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/ui/settings.py b/ui/settings.py index 691e583..197c031 100644 --- a/ui/settings.py +++ b/ui/settings.py @@ -267,22 +267,13 @@ class MyApp(Adw.Application): def show_login(): dialog = Gtk.Dialog(title="Goldwarden") - preference_group = Adw.PreferencesGroup() - preference_group.set_title("Config") - preference_group.set_margin_top(10) - preference_group.set_margin_bottom(10) - preference_group.set_margin_start(10) - preference_group.set_margin_end(10) - - dialog.get_content_area().append(preference_group) - - url_entry = Adw.EntryRow() - url_entry.set_title("Base Url") - url_entry.set_text("https://vault.bitwarden.com/") - preference_group.add(url_entry) auth_preference_group = Adw.PreferencesGroup() auth_preference_group.set_title("Authentication") + auth_preference_group.set_margin_top(10) + auth_preference_group.set_margin_bottom(10) + auth_preference_group.set_margin_start(10) + auth_preference_group.set_margin_end(10) dialog.get_content_area().append(auth_preference_group) email_entry = Adw.EntryRow() @@ -321,6 +312,20 @@ def show_login(): login_thread = Thread(target=login) login_thread.start() + preference_group = Adw.PreferencesGroup() + preference_group.set_title("Config") + preference_group.set_margin_top(10) + preference_group.set_margin_bottom(10) + preference_group.set_margin_start(10) + preference_group.set_margin_end(10) + + dialog.get_content_area().append(preference_group) + + url_entry = Adw.EntryRow() + url_entry.set_title("Base Url") + url_entry.set_text("https://vault.bitwarden.com/") + preference_group.add(url_entry) + #ok response dialog.connect("response", lambda dialog, response: on_save(response)) dialog.set_default_size(400, 200)