diff --git a/src/Tides.cpp b/src/Tides.cpp index 7e2ecd2..870c192 100644 --- a/src/Tides.cpp +++ b/src/Tides.cpp @@ -225,6 +225,7 @@ struct TidesWidget : ModuleWidget { sheepPanel = new SvgPanel(); sheepPanel->setBackground(Svg::load(asset::plugin(pluginInstance, "res/Sheep.svg"))); sheepPanel->box.size = box.size; + sheepPanel->hide(); addChild(sheepPanel); } @@ -268,8 +269,8 @@ struct TidesWidget : ModuleWidget { Tides* module = dynamic_cast(this->module); if (module) { - tidesPanel->visible = !module->sheep; - sheepPanel->visible = module->sheep; + tidesPanel->setVisible(!module->sheep); + sheepPanel->setVisible(module->sheep); } ModuleWidget::step();