don't open the overlay when auto accept is used

This commit is contained in:
otavepto 2024-01-06 07:43:09 +02:00
parent 21545509fd
commit 628d5001a6

View File

@ -242,7 +242,12 @@ void Steam_Overlay::OpenOverlayInvite(CSteamID lobbyId)
void Steam_Overlay::OpenOverlay(const char* pchDialog)
{
// TODO: Show pages depending on pchDialog
if ((strcmp(pchDialog, "Friends") == 0) && (settings->auto_accept_invites.size() > 0)) {
PRINT_DEBUG("Not opening overlay's friends list because some friends are defined in the auto accept list\n");
AddAutoAcceptInviteNotification();
} else {
ShowOverlay(true);
}
}
void Steam_Overlay::OpenOverlayWebpage(const char* pchURL)