1
0
mirror of synced 2024-11-28 09:30:51 +01:00

impr: Make sure to clear selections when all providers are deleted

This commit is contained in:
WerWolv 2023-05-12 08:38:52 +02:00
parent b0876e1c35
commit 21d922113d

View File

@ -881,6 +881,8 @@ namespace hex::plugin::builtin {
if (newProvider != nullptr) {
this->m_hexEditor.setSelectionUnchecked(this->m_selectionStart.get(newProvider), this->m_selectionEnd.get(newProvider));
this->m_hexEditor.setScrollPosition(this->m_scrollPosition.get(newProvider));
} else {
ImHexApi::HexEditor::clearSelection();
}
this->m_hexEditor.forceUpdateScrollPosition();