fix: Closing providers not clearing selection correctly

This commit is contained in:
WerWolv
2024-05-10 22:10:59 +02:00
parent 973af4650c
commit 8fae55487a

View File

@@ -957,7 +957,7 @@ namespace hex::plugin::builtin {
if (newProvider != nullptr) {
m_hexEditor.setSelectionUnchecked(m_selectionStart.get(newProvider), m_selectionEnd.get(newProvider));
} else {
ImHexApi::HexEditor::clearSelection();
m_hexEditor.setSelectionUnchecked(std::nullopt, std::nullopt);
}
if (isSelectionValid()) {