Clear selection after deleting recordings

This commit is contained in:
0xboobface 2020-05-30 17:58:14 +02:00
parent 7f661c3dc1
commit 9f92e05942
1 changed files with 4 additions and 0 deletions

View File

@ -691,6 +691,10 @@ public class RecordingsTab extends Tab implements TabSelectionListener {
showErrorDialog("Error while deleting recording", "Recording not deleted", exceptions);
}
observableRecordings.removeAll(deleted);
Platform.runLater(() -> {
table.getSelectionModel().clearSelection();
table.refresh();
});
} finally {
recordingsLock.unlock();
Platform.runLater(() -> table.setCursor(Cursor.DEFAULT));