From 25fd736d5235d223c2d91785ee0f69ccdd408069 Mon Sep 17 00:00:00 2001 From: Stan Janssen Date: Sat, 25 Mar 2023 09:07:31 +0100 Subject: [PATCH] Sync the text for the SMTP username to the IMAP username This is a minor improvement that syncs the value of the SMTP username field to the input of the IMAP username field as long as the 'Use IMAP Credentials' option is active. --- src/Dialogs/Imap/ImapDialog.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Dialogs/Imap/ImapDialog.vala b/src/Dialogs/Imap/ImapDialog.vala index ddd5984c..52648634 100644 --- a/src/Dialogs/Imap/ImapDialog.vala +++ b/src/Dialogs/Imap/ImapDialog.vala @@ -288,6 +288,9 @@ public class OnlineAccounts.ImapDialog : Hdy.Window { imap_username_entry.changed.connect (() => { imap_username_entry.is_valid = imap_username_entry.text.length > 0; + if (use_imap_credentials.active) { + smtp_username_entry.text = imap_username_entry.text; + } set_button_sensitivity (); });