1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Various crashes

This commit is contained in:
WerWolv 2022-01-09 21:57:22 +01:00
parent d38d261bbc
commit 0119ec0055
2 changed files with 7 additions and 2 deletions

View File

@ -6730,8 +6730,9 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
if (window == window->RootWindow)
{
ImGuiWindow* blocking_modal = FindBlockingModal(window);
IM_ASSERT(blocking_modal != NULL);
BringWindowToDisplayBehind(window, blocking_modal);
if (blocking_modal != NULL)
BringWindowToDisplayBehind(window, blocking_modal);
}
}
}

View File

@ -194,10 +194,14 @@ namespace hex::init {
SharedData::footerItems.clear();
SharedData::toolbarItems.clear();
SharedData::globalShortcuts.clear();
SharedData::runningTasks.clear();
SharedData::dataProcessorNodes.clear();
SharedData::recentFilePaths.clear();
SharedData::clearVariables();
return true;