ImGui: Don't show overlays when system paused

This commit is contained in:
Connor McLaughlin 2022-10-03 22:18:27 +10:00
parent f25d7f6e09
commit 74452eede3

View file

@ -49,14 +49,15 @@ static bool s_save_state_selector_ui_open = false;
void ImGuiManager::RenderOverlays() void ImGuiManager::RenderOverlays()
{ {
if (System::IsValid()) const System::State state = System::GetState();
if (state != System::State::Shutdown)
{ {
DrawPerformanceOverlay(); DrawPerformanceOverlay();
if (g_settings.display_show_enhancements) if (g_settings.display_show_enhancements && state != System::State::Paused)
DrawEnhancementsOverlay(); DrawEnhancementsOverlay();
if (g_settings.display_show_inputs) if (g_settings.display_show_inputs && state != System::State::Paused)
DrawInputsOverlay(); DrawInputsOverlay();
if (s_save_state_selector_ui_open) if (s_save_state_selector_ui_open)