Skip to content

Commit

Permalink
Fix Elements Ominous Voice bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hemmer authored and falkTX committed May 14, 2022
1 parent fec73bc commit 2ff5cc5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/Elements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,17 @@ struct ElementsWidget : ModuleWidget {

menu->addChild(createMenuLabel("Models"));

static const std::vector<std::string> modelLabels = {
"Original",
"Non-linear string",
"Chords",
"Ominous voice",
static const std::vector<std::pair<std::string, int>> modelLabels = {
std::make_pair("Original", 0),
std::make_pair("Non-linear string", 1),
std::make_pair("Chords", 2),
std::make_pair("Ominous voice", -1),
};
for (int i = 0; i < 4; i++) {
menu->addChild(createCheckMenuItem(modelLabels[i], "",
[=]() {return module->getModel() == i;},
[=]() {module->setModel(i);}

for (auto modelLabel : modelLabels) {
menu->addChild(createCheckMenuItem(modelLabel.first, "",
[=]() {return module->getModel() == modelLabel.second;},
[=]() {module->setModel(modelLabel.second);}
));
}
}
Expand Down

0 comments on commit 2ff5cc5

Please sign in to comment.