Skip to content

Commit

Permalink
Don't show login dialog outside game sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
starcraft66 committed Jun 18, 2024
1 parent 88dd25b commit bc348d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lanpartyseating.Desktop.Tray/ToastNotificationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ private void ProcessReceivedMessage(BaseMessage message)
}
else if (message is ReservationStateResponse reservationStateResponse)
{
// Don't show the pop-up if the session is not active (e.g. tournament or fresh boot auto login)
if (reservationStateResponse.IsSessionActive == false) return;

var minutesUntilEnd = (reservationStateResponse.ReservationEnd - DateTimeOffset.UtcNow).TotalMinutes;
var formattedLocalEndTime = reservationStateResponse.ReservationEnd.ToLocalTime().ToString("t");

Expand Down

0 comments on commit bc348d3

Please sign in to comment.