Widgets.Attachment.Box: Hide if empty
This commit is contained in:
parent
f1f8cd1fb0
commit
86d1820cc2
|
@ -259,7 +259,6 @@
|
|||
</child>
|
||||
<child>
|
||||
<object class="TootleWidgetsAttachmentBox" id="attachments">
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue