mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
fix: Highlighting not being cleared correctly in some cases
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user