31 using menu_item::Selection::Selection;
34 if (navigatedBackwardFrom ==
nullptr) {
38 this->setValue(soundEditor.currentSourceIndex);
44 if (this->getValue() == NUM_GATE_CHANNELS) {
45 return &gateOffTimeMenu;
47 soundEditor.currentSourceIndex = this->getValue();
50 if (display->haveOLED()) {
51 gateModeMenu.format(this->getValue() + 1);
54 gateModeMenu.updateOptions(this->getValue());
58 deluge::vector<std::string_view> getOptions(OptType optType)
override {
60 using enum l10n::String;
61 static auto out1 = l10n::getView(STRING_FOR_GATE_OUTPUT_1);
62 static auto out2 = l10n::getView(STRING_FOR_GATE_OUTPUT_2);
63 static auto out3 = l10n::getView(STRING_FOR_GATE_OUTPUT_3);
64 static auto out4 = l10n::getView(STRING_FOR_GATE_OUTPUT_4);
71 l10n::getView(STRING_FOR_MINIMUM_OFF_TIME),