GUI: more improvements to instrument loading

now with an "instrument load always replace" option
This commit is contained in:
tildearrow 2022-05-04 23:11:51 -05:00
parent 99a313b684
commit c3e55ae117
4 changed files with 12 additions and 4 deletions

View file

@ -45,7 +45,7 @@ void FurnaceGUI::drawInsList() {
}
ImGui::SameLine();
if (ImGui::Button(ICON_FA_FOLDER_OPEN "##InsLoad")) {
doAction(GUI_ACTION_INS_LIST_OPEN);
doAction((settings.insLoadAlwaysReplace && curIns>=0 && curIns<=(int)e->song.ins.size())?GUI_ACTION_INS_LIST_OPEN_REPLACE:GUI_ACTION_INS_LIST_OPEN);
}
ImGui::SameLine();
if (ImGui::Button(ICON_FA_FLOPPY_O "##InsSave")) {