From 628d5001a6b2d68080f48f9957aff45fddaeb43a Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sat, 6 Jan 2024 07:43:09 +0200 Subject: [PATCH] don't open the overlay when auto accept is used --- overlay_experimental/steam_overlay.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 27caea64..7e484ec4 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -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)