Make preview column visible depending on the preview setting
This commit is contained in:
parent
4cbb21bdb6
commit
2fc538c83a
|
@ -479,9 +479,7 @@ public abstract class AbstractRecordedModelsTab extends Tab implements TabSelect
|
||||||
|
|
||||||
protected void restoreState() {
|
protected void restoreState() {
|
||||||
table.restoreState();
|
table.restoreState();
|
||||||
if (!config.getSettings().livePreviews) {
|
table.getColumns().stream().filter(tc -> Objects.equals(tc.getId(), "preview")).findFirst().ifPresent(tc -> tc.setVisible(config.getSettings().livePreviews));
|
||||||
table.getColumns().stream().filter(tc -> Objects.equals(tc.getId(), "preview")).findFirst().ifPresent(tc -> tc.setVisible(false));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected class ClickableCellFactory<S, T> implements Callback<TableColumn<S, T>, TableCell<S, T>> {
|
protected class ClickableCellFactory<S, T> implements Callback<TableColumn<S, T>, TableCell<S, T>> {
|
||||||
|
|
Loading…
Reference in New Issue