Skip to content

Commit

Permalink
Fix FX buttons not properly lit (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Nov 30, 2024
1 parent be57f77 commit 8daf24d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/elems/mainWindow/keyboard/midiChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ geMidiChannel::geMidiChannel(int X, int Y, int W, int H, c::channel::Data d)
fx->copy_tooltip(g_ui->getI18Text(LangMap::MAIN_CHANNEL_LABEL_FX));
vol->copy_tooltip(g_ui->getI18Text(LangMap::MAIN_CHANNEL_LABEL_VOLUME));

fx->setValue(m_channel.plugins.size() > 0);
fx->forceValue(m_channel.plugins.size() > 0);
fx->onClick = [this]()
{
c::layout::openChannelPluginListWindow(m_channel.id);
Expand Down
1 change: 1 addition & 0 deletions src/gui/elems/mainWindow/mainInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ geMainInput::geMainInput()
c::main::setInToOut(inToOut->getValue());
};

m_masterFxIn->forceValue(m_io.masterInHasPlugins);
m_masterFxIn->onClick = []
{ c::layout::openMasterInPluginListWindow(); };
}
Expand Down
1 change: 1 addition & 0 deletions src/gui/elems/mainWindow/mainOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ geMainOutput::geMainOutput()
c::main::setMasterOutVolume(v, Thread::MAIN);
};

m_masterFxOut->forceValue(m_io.masterOutHasPlugins);
m_masterFxOut->onClick = []
{ c::layout::openMasterOutPluginListWindow(); };
}
Expand Down

0 comments on commit 8daf24d

Please sign in to comment.