Skip to content

Commit

Permalink
Add new 'Setup MIDI input' menu element to Channel Group
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Aug 13, 2024
1 parent 1d5f9da commit 57fdd9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/elems/mainWindow/keyboard/groupChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace
{
enum class Menu
{
SETUP_MIDI_INPUT,
EDIT_ROUTING,
RENAME_CHANNEL,
};
Expand Down Expand Up @@ -128,13 +129,17 @@ void geGroupChannel::openMenu()
{
geMenu menu;

menu.addItem((ID)Menu::SETUP_MIDI_INPUT, g_ui->getI18Text(LangMap::MAIN_CHANNEL_MENU_MIDIINPUT));
menu.addItem((ID)Menu::EDIT_ROUTING, g_ui->getI18Text(LangMap::MAIN_CHANNEL_MENU_EDITROUTING));
menu.addItem((ID)Menu::RENAME_CHANNEL, g_ui->getI18Text(LangMap::MAIN_CHANNEL_MENU_RENAME));

menu.onSelect = [&data = m_channel](ID id)
{
switch (static_cast<Menu>(id))
{
case Menu::SETUP_MIDI_INPUT:
c::layout::openChannelMidiInputWindow(data.id);
break;
case Menu::EDIT_ROUTING:
c::layout::openChannelRoutingWindow(data.id);
break;
Expand Down

0 comments on commit 57fdd9c

Please sign in to comment.