Skip to content

Commit

Permalink
Add "duplicate" to inst. list context menu.
Browse files Browse the repository at this point in the history
It's right at the top of the menu, purely because that's the order the buttons are in.
  • Loading branch information
ElectricKeet committed Oct 9, 2023
1 parent cb8ed42 commit eb6dd42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/dataList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit eb6dd42

Please sign in to comment.