ImGui: Remove close button from debug windows
They can be closed by unchecking the setting instead, and it stays in sync with the config this way.
This commit is contained in:
@ -726,7 +726,7 @@ void MDEC::DrawDebugStateWindow()
|
||||
const float framebuffer_scale = ImGui::GetIO().DisplayFramebufferScale.x;
|
||||
|
||||
ImGui::SetNextWindowSize(ImVec2(300.0f * framebuffer_scale, 350.0f * framebuffer_scale), ImGuiCond_FirstUseEver);
|
||||
if (!ImGui::Begin("MDEC State", &g_settings.debugging.show_mdec_state))
|
||||
if (!ImGui::Begin("MDEC State", nullptr))
|
||||
{
|
||||
ImGui::End();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user