GUI: fix cut off text in settings

This commit is contained in:
tildearrow 2023-09-05 15:30:53 -05:00
parent eb18b28928
commit fc760eed43
1 changed files with 3 additions and 3 deletions

View File

@ -1074,9 +1074,7 @@ void FurnaceGUI::drawSettings() {
ImGui::TableNextColumn();
ImGui::Text("Action");
ImGui::TableNextColumn();
ImGui::Text("Learn");
ImGui::TableNextColumn();
ImGui::Text("Remove");
for (size_t i=0; i<midiMap.binds.size(); i++) {
MIDIBind& bind=midiMap.binds[i];
@ -1178,13 +1176,15 @@ void FurnaceGUI::drawSettings() {
}
ImGui::TableNextColumn();
if (ImGui::Button((learning==(int)i)?("waiting...##BLearn"):(ICON_FA_SQUARE_O "##BLearn"))) {
pushToggleColors(learning==(int)i);
if (ImGui::Button((learning==(int)i)?("waiting...##BLearn"):("Learn##BLearn"))) {
if (learning==(int)i) {
learning=-1;
} else {
learning=i;
}
}
popToggleColors();
ImGui::TableNextColumn();
if (ImGui::Button(ICON_FA_TIMES "##BRemove")) {