mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: Make sure to clear selections when all providers are deleted
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user