talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 43b301a1b13682efa67eb5c055f27c19d633455e
parent 48a5932dfcb80bc17eb38d011496efc90426297c
Author: paul <paul@claws-mail.org>
Date:   Thu, 15 Apr 2021 16:24:22 +0100

only activate the Authroize button when the Authorization Code box is not empty

Diffstat:
Msrc/prefs_account.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/prefs_account.c b/src/prefs_account.c @@ -2400,6 +2400,8 @@ static void oauth2_create_widget_func(PrefsPage * _page, G_CALLBACK(prefs_account_oauth2_set_sensitivity), NULL); g_signal_connect(G_OBJECT(oauth2_authcode_entry), "changed", G_CALLBACK(prefs_account_oauth2_set_auth_sensitivity), NULL); + gtk_widget_set_sensitive(GTK_WIDGET(oauth2_authorise_btn), + gtk_entry_get_text_length(GTK_ENTRY(oauth2_authcode_entry)) > 0); if (new_account) { prefs_set_dialog_to_default(oauth2_param);