fix: Highlighting not being cleared correctly in some cases

This commit is contained in:
WerWolv
2023-09-12 22:23:47 +02:00
parent 5e86f62a98
commit da18428f27
2 changed files with 10 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ namespace hex::plugin::builtin {
ImHexApi::Provider::markDirty();
EventManager::post<EventBookmarkCreated>(this->m_bookmarks->back());
EventManager::post<EventHighlightingChanged>();
});
// Draw hex editor background highlights for bookmarks
@@ -374,6 +375,7 @@ namespace hex::plugin::builtin {
// Remove the bookmark that was marked for removal
if (bookmarkToRemove != this->m_bookmarks->end()) {
this->m_bookmarks->erase(bookmarkToRemove);
EventManager::post<EventHighlightingChanged>();
}
}
ImGui::EndChild();