1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Remove explicit dependency on INotificationOverlay

This commit is contained in:
Dean Herbert 2022-04-28 16:08:32 +09:00
parent 58399a5113
commit d056465742

View File

@ -38,10 +38,10 @@ namespace osu.Game.Beatmaps.Drawables
{ {
var localDependencies = new DependencyContainer(base.CreateChildDependencies(parent)); var localDependencies = new DependencyContainer(base.CreateChildDependencies(parent));
localDependencies.CacheAs<BeatmapModelDownloader>(beatmapDownloader = new BundledBeatmapModelDownloader(parent.Get<BeatmapManager>(), parent.Get<IAPIProvider>()) localDependencies.CacheAs<BeatmapModelDownloader>(beatmapDownloader = new BundledBeatmapModelDownloader(parent.Get<BeatmapManager>(), parent.Get<IAPIProvider>()));
{
PostNotification = parent.Get<INotificationOverlay>().Post if (parent.Get<INotificationOverlay>() is INotificationOverlay notifications)
}); beatmapDownloader.PostNotification = notifications.Post;
return localDependencies; return localDependencies;
} }