mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 09:05:41 +00:00
ImGui: Don't show overlays when system paused
This commit is contained in:
parent
f25d7f6e09
commit
74452eede3
|
@ -49,14 +49,15 @@ static bool s_save_state_selector_ui_open = false;
|
|||
|
||||
void ImGuiManager::RenderOverlays()
|
||||
{
|
||||
if (System::IsValid())
|
||||
const System::State state = System::GetState();
|
||||
if (state != System::State::Shutdown)
|
||||
{
|
||||
DrawPerformanceOverlay();
|
||||
|
||||
if (g_settings.display_show_enhancements)
|
||||
if (g_settings.display_show_enhancements && state != System::State::Paused)
|
||||
DrawEnhancementsOverlay();
|
||||
|
||||
if (g_settings.display_show_inputs)
|
||||
if (g_settings.display_show_inputs && state != System::State::Paused)
|
||||
DrawInputsOverlay();
|
||||
|
||||
if (s_save_state_selector_ui_open)
|
||||
|
|
Loading…
Reference in a new issue