Skip to content

Commit

Permalink
disable onRemove hack if rack version > 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveBenham committed Apr 20, 2024
1 parent 98c8f41 commit 02cff33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ struct VenomModule : Module {
// Hack workaround for VCV bug when deleting a module - failure to trigger onExpanderChange()
// Remove if/when VCV fixes the bug
void onRemove(const RemoveEvent& e) override {
if (rack::string::Version("2.5.0") < rack::string::Version(rack::APP_VERSION)) return;
Module::ExpanderChangeEvent event;
Module::Expander expander = getRightExpander();
if (expander.module){
Expand Down

0 comments on commit 02cff33

Please sign in to comment.