GUI: add option to show ins type menu when adding

This commit is contained in:
tildearrow 2023-08-08 00:03:56 -05:00
parent 3af2f8d2a4
commit cc8b5d28a8
3 changed files with 18 additions and 0 deletions

View file

@ -609,6 +609,14 @@ void FurnaceGUI::doAction(int what) {
break;
case GUI_ACTION_INS_LIST_ADD:
if (settings.insTypeMenu) {
makeInsTypeList=e->getPossibleInsTypes();
if (makeInsTypeList.size()>1) {
displayInsTypeList=true;
displayInsTypeListMakeInsSample=-1;
break;
}
}
curIns=e->addInstrument(cursor.xCoarse);
if (curIns==-1) {
showError("too many instruments!");