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:
parent
58399a5113
commit
d056465742
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user