clear attachments table if there aren't any

pull/53/head
Zlatin Balevsky 2020-11-05 20:50:07 +00:00
parent 50b12dc6d2
commit 47dc50b2bb
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 4 additions and 2 deletions

View File

@ -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)