From 4450ebb7aabde85bb2ba83ed290d2d05ca064e78 Mon Sep 17 00:00:00 2001 From: Electric Keet Date: Mon, 9 Oct 2023 15:50:38 -0700 Subject: [PATCH] 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. --- src/gui/dataList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index 8925b69fe..2762b6fc3 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -133,6 +133,9 @@ void FurnaceGUI::insListItem(int i, int dir, int asset) { curIns=i; updateFMPreview=true; ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_TEXT]); + if (ImGui::MenuItem("duplicate")) { + doAction(GUI_ACTION_INS_LIST_DUPLICATE); + } if (ImGui::MenuItem("replace...")) { doAction((curIns>=0 && curIns<(int)e->song.ins.size())?GUI_ACTION_INS_LIST_OPEN_REPLACE:GUI_ACTION_INS_LIST_OPEN); }