Skip to content

Commit

Permalink
System: Reduce force-displayed-warning scope
Browse files Browse the repository at this point in the history
Please don't make me regret this.
  • Loading branch information
stenzek committed Sep 10, 2024
1 parent 9de8bf9 commit 338fb27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4546,7 +4546,7 @@ void System::WarnAboutUnsafeSettings()
LargeString messages;
auto append = [&messages](const char* icon, std::string_view msg) { messages.append_format("{} {}\n", icon, msg); };

if (!g_settings.disable_all_enhancements)
if (!g_settings.disable_all_enhancements && ImGuiManager::IsShowingOSDMessages())
{
if (g_settings.cpu_overclock_active)
{
Expand Down Expand Up @@ -4595,7 +4595,8 @@ void System::WarnAboutUnsafeSettings()
TRANSLATE_SV("System", "8MB RAM is enabled, this may be incompatible with some games."));
}
}
else

if (g_settings.disable_all_enhancements)
{
append(ICON_EMOJI_WARNING, TRANSLATE_SV("System", "All enhancements are currently disabled."));

Expand Down

0 comments on commit 338fb27

Please sign in to comment.