Add "duplicate" to inst. list context menu.

It's right at the top of the menu, purely because that's the order the buttons are in.
This commit is contained in:
Electric Keet 2023-10-09 15:50:38 -07:00 committed by tildearrow
parent cb8ed42cd6
commit 4450ebb7aa

View file

@ -133,6 +133,9 @@ void FurnaceGUI::insListItem(int i, int dir, int asset) {
curIns=i; curIns=i;
updateFMPreview=true; updateFMPreview=true;
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_TEXT]); ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_TEXT]);
if (ImGui::MenuItem("duplicate")) {
doAction(GUI_ACTION_INS_LIST_DUPLICATE);
}
if (ImGui::MenuItem("replace...")) { if (ImGui::MenuItem("replace...")) {
doAction((curIns>=0 && curIns<(int)e->song.ins.size())?GUI_ACTION_INS_LIST_OPEN_REPLACE:GUI_ACTION_INS_LIST_OPEN); doAction((curIns>=0 && curIns<(int)e->song.ins.size())?GUI_ACTION_INS_LIST_OPEN_REPLACE:GUI_ACTION_INS_LIST_OPEN);
} }