ui: Make sure sealed patterns get highlighted properly when selected

This commit is contained in:
WerWolv 2022-10-10 14:40:49 +02:00
parent 9055105627
commit c6d2d51d4c
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ namespace hex {
bool createTreeNode(const pl::ptrn::Pattern& pattern) {
if (pattern.isSealed()) {
ImGui::Indent();
ImGui::TextUnformatted(pattern.getDisplayName().c_str());
highlightWhenSelected(pattern, [&]{ ImGui::TextUnformatted(pattern.getDisplayName().c_str()); });
ImGui::Unindent();
return false;
}