impr: Make sure to clear selections when all providers are deleted
This commit is contained in:
parent
b0876e1c35
commit
21d922113d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user