mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-07-04 23:55:19 +02:00
don't open the overlay when auto accept is used
This commit is contained in:
parent
21545509fd
commit
628d5001a6
1 changed files with 6 additions and 1 deletions
|
@ -242,7 +242,12 @@ void Steam_Overlay::OpenOverlayInvite(CSteamID lobbyId)
|
|||
void Steam_Overlay::OpenOverlay(const char* pchDialog)
|
||||
{
|
||||
// TODO: Show pages depending on pchDialog
|
||||
ShowOverlay(true);
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue