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:
Connor McLaughlin
2021-02-12 00:47:32 +10:00
parent c8efade20c
commit c6c67b7b27
6 changed files with 6 additions and 6 deletions

View File

@ -2322,7 +2322,7 @@ void CDROM::DrawDebugWindow()
const float framebuffer_scale = ImGui::GetIO().DisplayFramebufferScale.x;
ImGui::SetNextWindowSize(ImVec2(800.0f * framebuffer_scale, 550.0f * framebuffer_scale), ImGuiCond_FirstUseEver);
if (!ImGui::Begin("CDROM State", &g_settings.debugging.show_cdrom_state))
if (!ImGui::Begin("CDROM State", nullptr))
{
ImGui::End();
return;