|
|
@@ -761,6 +761,10 @@ void RackWidget::disconnectSelectedModulesAction() { |
|
|
|
delete complexAction; |
|
|
|
} |
|
|
|
|
|
|
|
void RackWidget::cloneSelectedModulesAction() { |
|
|
|
// TODO |
|
|
|
} |
|
|
|
|
|
|
|
void RackWidget::bypassSelectedModulesAction(bool bypassed) { |
|
|
|
history::ComplexAction* complexAction = new history::ComplexAction; |
|
|
|
complexAction->name = bypassed ? "bypass modules" : "un-bypass modules"; |
|
|
@@ -877,6 +881,11 @@ void RackWidget::appendSelectionContextMenu(ui::Menu* menu) { |
|
|
|
disconnectSelectedModulesAction(); |
|
|
|
}, n == 0)); |
|
|
|
|
|
|
|
// Duplicate |
|
|
|
menu->addChild(createMenuItem("Duplicate", RACK_MOD_CTRL_NAME "+D", [=]() { |
|
|
|
cloneSelectedModulesAction(); |
|
|
|
})); |
|
|
|
|
|
|
|
// Bypass |
|
|
|
std::string bypassText = RACK_MOD_CTRL_NAME "+E"; |
|
|
|
bool bypassed = (n > 0) && areSelectedModulesBypassed(); |
|
|
|