From 9ad8ed7c351c91c256994c52afe67718dd655d0e Mon Sep 17 00:00:00 2001 From: Hanjin Liu Date: Fri, 26 Jul 2024 21:06:16 +0900 Subject: [PATCH] initialize visibility --- Cargo.toml | 2 +- cylindra/project/_widgets.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index dadbe48a..b11c9b0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cylindra_ext" -version = "1.0.0-beta.3" +version = "1.0.0-beta.4" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/cylindra/project/_widgets.py b/cylindra/project/_widgets.py index fd277e94..5a182f3f 100644 --- a/cylindra/project/_widgets.py +++ b/cylindra/project/_widgets.py @@ -84,6 +84,7 @@ def _add_layer(self, layer: "LayerItem", visible: bool = True): def _on_visible_change(value: bool): layer.visible = value + layer.visible = visible self.append(cont) def _from_project(self, project: "CylindraProject", dir: Path):