do not perform filesystem operations in the UI thread

This commit is contained in:
Zlatin Balevsky
2019-06-27 23:29:48 +01:00
parent a9aa3a524f
commit e3066161c5
3 changed files with 20 additions and 4 deletions

View File

@@ -167,8 +167,8 @@ class MainFrameView {
scrollPane(constraints : BorderLayout.CENTER) {
table(id : "shared-files-table", autoCreateRowSorter: true) {
tableModel(list : model.shared) {
closureColumn(header : "Name", preferredWidth : 500, type : String, read : {row -> row.file.getAbsolutePath()})
closureColumn(header : "Size", preferredWidth : 100, type : Long, read : {row -> row.file.length() })
closureColumn(header : "Name", preferredWidth : 500, type : String, read : {row -> row.getCachedPath()})
closureColumn(header : "Size", preferredWidth : 100, type : Long, read : {row -> row.getCachedLength() })
}
}
}