mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Crash when clicking on Advanced search in find popup
This commit is contained in:
@@ -47,10 +47,13 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
if(ImGuiExt::IconHyperlink(ICON_VS_SEARCH, "hex.builtin.view.hex_editor.search.advanced"_lang)) {
|
||||
const auto& view = ContentRegistry::Views::getViewByName("hex.builtin.view.find.name");
|
||||
view->getWindowOpenState() = true;
|
||||
ImGui::SetWindowFocus(view->getName().c_str());
|
||||
editor->closePopup();
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user