preserve selection in downloads table

pull/4/head
Zlatin Balevsky 2019-06-01 17:09:23 +01:00
parent 9645716e18
commit 15a0eda713
1 changed files with 5 additions and 1 deletions

View File

@ -74,8 +74,12 @@ class MainFrameModel {
runInsideUIAsync {
if (!mvcGroup.alive)
return
builder.getVariable("downloads-table")?.model.fireTableDataChanged()
builder.getVariable("uploads-table")?.model.fireTableDataChanged()
def downloadTable = builder.getVariable("downloads-table")
int selectedRow = downloadTable.getSelectedRow()
downloadTable.model.fireTableDataChanged()
downloadTable.selectionModel.setSelectionInterval(selectedRow,selectedRow)
}
}, 1000, 1000)
}