Widgets.Attachment.Box: Hide if empty

This commit is contained in:
Bleak Grey 2020-10-24 20:56:57 +03:00
parent f1f8cd1fb0
commit 86d1820cc2
2 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,6 @@
</child>
<child>
<object class="TootleWidgetsAttachmentBox" id="attachments">
<property name="visible">True</property>
</object>
<packing>
<property name="expand">False</property>

View File

@ -40,6 +40,7 @@ public class Tootle.Widgets.Attachment.Box : FlowBox {
public bool pack (API.Attachment obj) {
var w = new Widgets.Attachment.Slot (obj);
insert (w, -1);
show ();
return true;
}