Make preview column visible depending on the preview setting

This commit is contained in:
0xb00bface 2021-09-11 18:29:45 +02:00
parent 4cbb21bdb6
commit 2fc538c83a
1 changed files with 1 additions and 3 deletions

View File

@ -479,9 +479,7 @@ public abstract class AbstractRecordedModelsTab extends Tab implements TabSelect
protected void restoreState() {
table.restoreState();
if (!config.getSettings().livePreviews) {
table.getColumns().stream().filter(tc -> Objects.equals(tc.getId(), "preview")).findFirst().ifPresent(tc -> tc.setVisible(false));
}
table.getColumns().stream().filter(tc -> Objects.equals(tc.getId(), "preview")).findFirst().ifPresent(tc -> tc.setVisible(config.getSettings().livePreviews));
}
protected class ClickableCellFactory<S, T> implements Callback<TableColumn<S, T>, TableCell<S, T>> {