1
0
mirror of synced 2025-02-21 12:29:47 +01:00

fix: Close file option crashing

This commit is contained in:
WerWolv 2021-09-22 12:58:49 +02:00
parent 1b7a1852bc
commit 5601aab043

View File

@ -461,6 +461,7 @@ namespace hex {
if (ImGui::MenuItem("hex.view.hexeditor.menu.file.close"_lang, "", false, providerValid && provider->isAvailable())) { if (ImGui::MenuItem("hex.view.hexeditor.menu.file.close"_lang, "", false, providerValid && provider->isAvailable())) {
EventManager::post<EventFileUnloaded>(); EventManager::post<EventFileUnloaded>();
ImHexApi::Provider::remove(ImHexApi::Provider::get()); ImHexApi::Provider::remove(ImHexApi::Provider::get());
providerValid = false;
} }
if (ImGui::MenuItem("hex.view.hexeditor.menu.file.quit"_lang, "", false)) { if (ImGui::MenuItem("hex.view.hexeditor.menu.file.quit"_lang, "", false)) {