preserve selection in downloads table

This commit is contained in:
Zlatin Balevsky
2019-06-01 17:09:23 +01:00
parent 9645716e18
commit 15a0eda713

View File

@@ -74,8 +74,12 @@ class MainFrameModel {
runInsideUIAsync { runInsideUIAsync {
if (!mvcGroup.alive) if (!mvcGroup.alive)
return return
builder.getVariable("downloads-table")?.model.fireTableDataChanged()
builder.getVariable("uploads-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) }, 1000, 1000)
} }