mirror of https://github.com/ppy/osu
Do not show daily challenge conclusion notification on disconnection
Closes https://github.com/ppy/osu/issues/30194.
This commit is contained in:
parent
9d1eb842a7
commit
968835bb44
|
@ -410,7 +410,7 @@ private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule((
|
||||||
|
|
||||||
private void dailyChallengeChanged(ValueChangedEvent<DailyChallengeInfo?> change)
|
private void dailyChallengeChanged(ValueChangedEvent<DailyChallengeInfo?> change)
|
||||||
{
|
{
|
||||||
if (change.OldValue?.RoomID == room.RoomID.Value && change.NewValue == null)
|
if (change.OldValue?.RoomID == room.RoomID.Value && change.NewValue == null && metadataClient.IsConnected.Value)
|
||||||
{
|
{
|
||||||
notificationOverlay?.Post(new SimpleNotification { Text = DailyChallengeStrings.ChallengeEndedNotification });
|
notificationOverlay?.Post(new SimpleNotification { Text = DailyChallengeStrings.ChallengeEndedNotification });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue