MCPcopy Create free account
hub / github.com/VCVRack/Rack / bypassAction

Method bypassAction

src/app/ModuleWidget.cpp:909–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907}
908
909void ModuleWidget::bypassAction(bool bypassed) {
910 assert(module);
911
912 // history::ModuleBypass
913 history::ModuleBypass* h = new history::ModuleBypass;
914 h->moduleId = module->id;
915 h->bypassed = bypassed;
916 if (!bypassed)
917 h->name = string::translate("ModuleWidget.history.unbypassModule");
918 APP->history->push(h);
919
920 APP->engine->bypassModule(module, bypassed);
921}
922
923void ModuleWidget::removeAction() {
924 history::ComplexAction* h = new history::ComplexAction;

Callers 1

createContextMenuMethod · 0.80

Calls 3

translateFunction · 0.85
bypassModuleMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected