preserve selection when updating shared files table

This commit is contained in:
Zlatin Balevsky
2020-09-14 12:39:18 +01:00
parent c9eb702d7c
commit c7406a4838

View File

@ -1407,8 +1407,12 @@ class MainFrameView {
expanded.each { tree.expandPath(it) }
tree.setSelectionPaths(selectedPaths)
builder.getVariable("shared-files-table").model.fireTableDataChanged()
def table = builder.getVariable("shared-files-table")
int [] selectedRows = table.getSelectedRows()
table.model.fireTableDataChanged()
for (int row : selectedRows)
table.selectionModel.addSelectionInterval(row, row)
}
public void refreshFeeds() {