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() {
|
||||
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>> {
|
||||
|
|
Loading…
Reference in New Issue