clear files table when deleting collection

pull/53/head
Zlatin Balevsky 2020-10-31 09:21:35 +00:00
parent 9fbedbcdb5
commit c52ffc2671
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class CollectionsToolController {
model.eventBus.publish(e) model.eventBus.publish(e)
model.collections.remove(row) model.collections.remove(row)
view.collectionsTable.model.fireTableDataChanged() view.collectionsTable.model.fireTableDataChanged()
view.clearFilesTable()
} }
@ControllerAction @ControllerAction

View File

@ -108,6 +108,11 @@ class CollectionsToolView {
selectedRow selectedRow
} }
void clearFilesTable() {
model.files.clear()
filesTable.model.fireTableDataChanged()
}
void mvcGroupInit(Map<String,String> args) { void mvcGroupInit(Map<String,String> args) {
def centerRenderer = new DefaultTableCellRenderer() def centerRenderer = new DefaultTableCellRenderer()
centerRenderer.setHorizontalAlignment(JLabel.CENTER) centerRenderer.setHorizontalAlignment(JLabel.CENTER)