Skip to content

Commit

Permalink
genome editor: expand cell item after clicking on preview, collapse a…
Browse files Browse the repository at this point in the history
…ll others
  • Loading branch information
chrxh committed Nov 21, 2024
1 parent 2ac07bf commit a0437a0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions source/Gui/GenomeEditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,13 @@ void GenomeEditorWindow::processConstructionSequence(TabData& tab)
} else {
ImGui::PushStyleColor(ImGuiCol_Header, static_cast<ImVec4>(ImColor::HSV(0, 0, 0, 0)));
}
if (_nodeIndexToJump && *_nodeIndexToJump == index) {
ImGui::SetScrollHereY();
_nodeIndexToJump = std::nullopt;
if (_nodeIndexToJump) {
if (_nodeIndexToJump == index) {
ImGui::SetScrollHereY();
ImGui::SetNextItemOpen(true);
} else {
ImGui::SetNextItemOpen(false);
}
}

if (_expandNodes) {
Expand Down Expand Up @@ -487,6 +491,7 @@ void GenomeEditorWindow::processConstructionSequence(TabData& tab)
++index;
}
_expandNodes.reset();
_nodeIndexToJump.reset();
}

void GenomeEditorWindow::processNode(
Expand Down

0 comments on commit a0437a0

Please sign in to comment.