mirror of https://github.com/zlatinb/muwire
preserve selection in downloads table
parent
9645716e18
commit
15a0eda713
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue