27 using Selection::Selection;
29 OverDubType type = FlashStorage::defaultLoopRecordingCommand == GlobalMIDICommand::LOOP
31 : OverDubType::ContinuousLayering;
32 this->setValue(util::to_underlying(type));
34 void writeCurrentValue()
override {
35 FlashStorage::defaultLoopRecordingCommand = this->getValue<OverDubType>() == OverDubType::Normal
36 ? GlobalMIDICommand::LOOP
37 : GlobalMIDICommand::LOOP_CONTINUOUS_LAYERING;
39 deluge::vector<std::string_view> getOptions(OptType optType)
override {
42 l10n::getView(l10n::String::STRING_FOR_LOOP),
43 l10n::getView(l10n::String::STRING_FOR_LAYERING_LOOP),