FullscreenUI: Make achievements window pause game

This commit is contained in:
Connor McLaughlin 2021-03-03 02:39:56 +10:00
parent 2088fa599e
commit b45891f21a

View File

@ -2207,10 +2207,8 @@ void DrawQuickMenu(MainWindowType type)
#ifdef WITH_CHEEVOS #ifdef WITH_CHEEVOS
const bool achievements_enabled = Cheevos::HasActiveGame() && (Cheevos::GetAchievementCount() > 0); const bool achievements_enabled = Cheevos::HasActiveGame() && (Cheevos::GetAchievementCount() > 0);
if (ActiveButton(ICON_FA_TROPHY " Achievements", false, achievements_enabled)) if (ActiveButton(ICON_FA_TROPHY " Achievements", false, achievements_enabled))
{
CloseQuickMenu();
s_current_main_window = MainWindowType::Achievements; s_current_main_window = MainWindowType::Achievements;
}
#else #else
ActiveButton(ICON_FA_TROPHY " Achievements", false, false); ActiveButton(ICON_FA_TROPHY " Achievements", false, false);
#endif #endif