Fixed #5876 (eliminate "Attach another file").
This commit is contained in:
parent
1fccd5a37e
commit
50f7e8c98b
1 changed files with 0 additions and 7 deletions
|
|
@ -569,7 +569,6 @@ public class ComposerWindow : Gtk.Window {
|
|||
box.pack_start(remove_button, false, false);
|
||||
remove_button.clicked.connect(() => remove_attachment(attachment_file, box));
|
||||
|
||||
refresh_add_attachment_button_label();
|
||||
attachments_box.show_all();
|
||||
|
||||
return true;
|
||||
|
|
@ -582,17 +581,11 @@ public class ComposerWindow : Gtk.Window {
|
|||
foreach (weak Gtk.Widget child in attachments_box.get_children()) {
|
||||
if (child == box) {
|
||||
attachments_box.remove(box);
|
||||
refresh_add_attachment_button_label();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void refresh_add_attachment_button_label() {
|
||||
add_attachment_button.label = attachment_files.size > 0 ? _("_Attach another file") :
|
||||
_("_Attach a file");
|
||||
}
|
||||
|
||||
private void on_subject_changed() {
|
||||
title = Geary.String.is_empty(subject_entry.text.strip()) ? DEFAULT_TITLE :
|
||||
subject_entry.text.strip();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue