mirror of
https://github.com/ppy/osu
synced 2025-03-05 02:49:30 +00:00
Remove explicit dependency on INotificationOverlay
This commit is contained in:
parent
58399a5113
commit
d056465742
@ -38,10 +38,10 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
{
|
||||
var localDependencies = new DependencyContainer(base.CreateChildDependencies(parent));
|
||||
|
||||
localDependencies.CacheAs<BeatmapModelDownloader>(beatmapDownloader = new BundledBeatmapModelDownloader(parent.Get<BeatmapManager>(), parent.Get<IAPIProvider>())
|
||||
{
|
||||
PostNotification = parent.Get<INotificationOverlay>().Post
|
||||
});
|
||||
localDependencies.CacheAs<BeatmapModelDownloader>(beatmapDownloader = new BundledBeatmapModelDownloader(parent.Get<BeatmapManager>(), parent.Get<IAPIProvider>()));
|
||||
|
||||
if (parent.Get<INotificationOverlay>() is INotificationOverlay notifications)
|
||||
beatmapDownloader.PostNotification = notifications.Post;
|
||||
|
||||
return localDependencies;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user