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