mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 14:52:55 +08:00
Fix async
usage in TestSceneNotificationOverlay
This commit is contained in:
parent
55a9de034d
commit
e6103fea95
@ -5,6 +5,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using osu.Framework.Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
@ -541,9 +542,9 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
progressingNotifications.Add(n);
|
progressingNotifications.Add(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void sendUserNotification()
|
private void sendUserNotification()
|
||||||
{
|
{
|
||||||
var user = await userLookupCache.GetUserAsync(0).ConfigureAwait(true);
|
var user = userLookupCache.GetUserAsync(0).GetResultSafely();
|
||||||
if (user == null) return;
|
if (user == null) return;
|
||||||
|
|
||||||
var n = new UserAvatarNotification(user, $"{user.Username} invited you to a multiplayer match!");
|
var n = new UserAvatarNotification(user, $"{user.Username} invited you to a multiplayer match!");
|
||||||
|
Loading…
Reference in New Issue
Block a user