1
0
mirror of synced 2024-09-24 11:38:26 +02:00

fix: Crash when clicking on Advanced search in find popup

This commit is contained in:
WerWolv 2024-05-17 23:16:49 +02:00
parent b54f46de30
commit 2546c042dc

View File

@ -47,10 +47,13 @@ namespace hex::plugin::builtin {
}
if(ImGuiExt::IconHyperlink(ICON_VS_SEARCH, "hex.builtin.view.hex_editor.search.advanced"_lang)) {
TaskManager::doLater([&editor] {
const auto& view = ContentRegistry::Views::getViewByName("hex.builtin.view.find.name");
view->getWindowOpenState() = true;
ImGui::SetWindowFocus(view->getName().c_str());
editor->closePopup();
});
}
if (lastMode != *s_searchMode) {