| 113 | } |
| 114 | |
| 115 | void PluginEditor::updateIsShowing() { |
| 116 | const auto is_showing = isShowing(); |
| 117 | if (is_showing != base_.getIsEditorShowing()) { |
| 118 | base_.setIsEditorShowing(is_showing); |
| 119 | p_ref_.getController().setEditorON(is_showing); |
| 120 | if (is_showing) { |
| 121 | main_panel_.startThreads(); |
| 122 | vblank_ = std::make_unique<juce::VBlankAttachment>( |
| 123 | &main_panel_, [this](const double x) { main_panel_.repaintCallBack(x); }); |
| 124 | } else { |
| 125 | vblank_.reset(); |
| 126 | main_panel_.stopThreads(); |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | int PluginEditor::getControlParameterIndex(Component& c) { |
| 132 | const auto id = c.getComponentID(); |
nothing calls this directly
no test coverage detected