mirror of https://github.com/zlatinb/muwire
clear attachments table if there aren't any
parent
50b12dc6d2
commit
47dc50b2bb
|
@ -1328,9 +1328,11 @@ class MainFrameView {
|
|||
model.messageButtonsEnabled = true
|
||||
model.messageRecipientList = String.join(",", selected.recipients.collect {it.getHumanReadableName()})
|
||||
|
||||
if (selected.attachments.isEmpty() && selected.collections.isEmpty())
|
||||
if (selected.attachments.isEmpty() && selected.collections.isEmpty()) {
|
||||
messageSplitPane.setDividerLocation(1.0d)
|
||||
else {
|
||||
model.messageAttachments.clear()
|
||||
messageAttachmentsTable.model.fireTableDataChanged()
|
||||
} else {
|
||||
messageSplitPane.setDividerLocation(0.7d)
|
||||
model.messageAttachments.clear()
|
||||
model.messageAttachments.addAll(selected.attachments)
|
||||
|
|
Loading…
Reference in New Issue