1
0
mirror of synced 2025-01-19 09:27:32 +01:00

fix: Don't capture the editor pointer by reference

This commit is contained in:
WerWolv 2024-05-17 23:19:28 +02:00
parent 2546c042dc
commit 22e717d778

View File

@ -47,7 +47,7 @@ namespace hex::plugin::builtin {
} }
if(ImGuiExt::IconHyperlink(ICON_VS_SEARCH, "hex.builtin.view.hex_editor.search.advanced"_lang)) { if(ImGuiExt::IconHyperlink(ICON_VS_SEARCH, "hex.builtin.view.hex_editor.search.advanced"_lang)) {
TaskManager::doLater([&editor] { TaskManager::doLater([editor] {
const auto& view = ContentRegistry::Views::getViewByName("hex.builtin.view.find.name"); const auto& view = ContentRegistry::Views::getViewByName("hex.builtin.view.find.name");
view->getWindowOpenState() = true; view->getWindowOpenState() = true;