Skip to content

Commit

Permalink
Cleanup + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Sep 11, 2023
1 parent 4568640 commit fe33d6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Dialogs/AliasDialog/Alias.vala
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ public class Mail.Alias : Gtk.ListBoxRow {
notify["alias-name"].connect (update_name_label);
update_name_label ();

save.connect (() => {
old_address = address;
});
save.connect (() => old_address = address);

name_entry.activate.connect (edit_popover.popdown);
address_entry.activate.connect (() => Idle.add (() => { // Without Idle this could cause activation of the '+ Add Alias' button
Expand Down
4 changes: 1 addition & 3 deletions src/Dialogs/AliasDialog/AliasDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ public class Mail.AliasDialog : Hdy.ApplicationWindow {
encoded_aliases.add (val ?? "", key);
});

if (encoded_aliases.length () > 0) {
Backend.Session.get_default ().set_aliases_for_account_uid.begin (account_uid, encoded_aliases.encode ());
}
Backend.Session.get_default ().set_aliases_for_account_uid.begin (account_uid, encoded_aliases.encode () ?? "");
}
}

0 comments on commit fe33d6d

Please sign in to comment.