28 using Selection::Selection;
30 OverDubType type = FlashStorage::defaultLoopRecordingCommand == GlobalMIDICommand::LOOP
32 : OverDubType::ContinuousLayering;
33 this->setValue(util::to_underlying(type));
35 void writeCurrentValue()
override {
36 FlashStorage::defaultLoopRecordingCommand = this->getValue<OverDubType>() == OverDubType::Normal
37 ? GlobalMIDICommand::LOOP
38 : GlobalMIDICommand::LOOP_CONTINUOUS_LAYERING;
40 deluge::vector<std::string_view> getOptions(OptType optType)
override {
43 l10n::getView(l10n::String::STRING_FOR_LOOP),
44 l10n::getView(l10n::String::STRING_FOR_LAYERING_LOOP),