forked from j62/ctbrec
1
0
Fork 0

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); showErrorDialog("Error while deleting recording", "Recording not deleted", exceptions);
} }
observableRecordings.removeAll(deleted); observableRecordings.removeAll(deleted);
Platform.runLater(() -> {
table.getSelectionModel().clearSelection();
table.refresh();
});
} finally { } finally {
recordingsLock.unlock(); recordingsLock.unlock();
Platform.runLater(() -> table.setCursor(Cursor.DEFAULT)); Platform.runLater(() -> table.setCursor(Cursor.DEFAULT));