GUI: find/replace selection in selected channels

issue #2393
This commit is contained in:
tildearrow 2025-03-05 19:27:15 -05:00
parent 43891b8d79
commit abaea665af

View file

@ -117,6 +117,11 @@ void FurnaceGUI::doFind() {
lastChan=curQueryRangeXMax; lastChan=curQueryRangeXMax;
} }
if (curQueryRangeY==1) {
firstChan=selStart.xCoarse;
lastChan=selEnd.xCoarse;
}
curQueryResults.clear(); curQueryResults.clear();
signed char effectPos[8]; signed char effectPos[8];
@ -827,6 +832,7 @@ void FurnaceGUI::drawFindReplace() {
} }
ImGui::TableNextColumn(); ImGui::TableNextColumn();
ImGui::BeginDisabled(curQueryRangeY==1);
ImGui::Checkbox(_("Confine to channels"),&curQueryRangeX); ImGui::Checkbox(_("Confine to channels"),&curQueryRangeX);
ImGui::BeginDisabled(!curQueryRangeX); ImGui::BeginDisabled(!curQueryRangeX);
@ -852,6 +858,7 @@ void FurnaceGUI::drawFindReplace() {
ImGui::EndCombo(); ImGui::EndCombo();
} }
ImGui::EndDisabled(); ImGui::EndDisabled();
ImGui::EndDisabled();
ImGui::TableNextColumn(); ImGui::TableNextColumn();
ImGui::Text(_("Match effect position:")); ImGui::Text(_("Match effect position:"));