Show attachments only when needed

This commit is contained in:
bleakgrey 2018-05-05 15:08:43 +03:00
parent 20472cda8b
commit fc5b92257f
1 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,8 @@ public class Tootle.StatusWidget : Gtk.EventBox {
grid.attach (counters, 2, 5, 1, 1);
add (grid);
show_all ();
attachments_scroll.hide ();
}
public StatusWidget (Status status) {
@ -169,6 +171,7 @@ public class Tootle.StatusWidget : Gtk.EventBox {
}
if (status.attachments != null) {
attachments_scroll.show ();
foreach (Attachment attachment in status.attachments)
attachments.add (new AttachmentWidget (attachment));
}