Skip to content

Commit

Permalink
Merge pull request #18 from otakulan/feature/tgh/fix-login-dialog
Browse files Browse the repository at this point in the history
Don't show login dialog outside game sessions
  • Loading branch information
starcraft66 authored Jun 18, 2024
2 parents 88dd25b + bc348d3 commit 9a3c6c2
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 9a3c6c2

Please sign in to comment.