Skip to content

Commit

Permalink
Sync the text for the SMTP username to the IMAP username
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stan-janssen committed Mar 28, 2023
1 parent 619759d commit 25fd736
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Dialogs/Imap/ImapDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
});

Expand Down

0 comments on commit 25fd736

Please sign in to comment.