commit e6e3c27f75c2198d67672abc8f5582106d355928
parent c532efe27611ce7938989eb65759efedfd1a2b36
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:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/prefs_account.c b/src/prefs_account.c
@@ -2366,6 +2366,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);