mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 09:02:58 +08:00
Fix beatmap download notifications not showing beatmap name correctly
This commit is contained in:
parent
fd46a1773f
commit
392559ae3e
@ -249,6 +249,23 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public IBindable<WeakReference<ArchiveDownloadRequest<BeatmapSetInfo>>> DownloadFailed => beatmapModelDownloader.DownloadFailed;
|
public IBindable<WeakReference<ArchiveDownloadRequest<BeatmapSetInfo>>> DownloadFailed => beatmapModelDownloader.DownloadFailed;
|
||||||
|
|
||||||
|
// Temporary method until this class supports IBeatmapSetInfo or otherwise.
|
||||||
|
public bool Download(IBeatmapSetInfo model, bool minimiseDownloadSize = false)
|
||||||
|
{
|
||||||
|
return beatmapModelDownloader.Download(new BeatmapSetInfo
|
||||||
|
{
|
||||||
|
OnlineBeatmapSetID = model.OnlineID,
|
||||||
|
Metadata = new BeatmapMetadata
|
||||||
|
{
|
||||||
|
Title = model.Metadata?.Title,
|
||||||
|
Artist = model.Metadata?.Artist,
|
||||||
|
TitleUnicode = model.Metadata?.TitleUnicode,
|
||||||
|
ArtistUnicode = model.Metadata?.ArtistUnicode,
|
||||||
|
Author = new User { Username = model.Metadata?.Author },
|
||||||
|
}
|
||||||
|
}, minimiseDownloadSize);
|
||||||
|
}
|
||||||
|
|
||||||
public bool Download(BeatmapSetInfo model, bool minimiseDownloadSize = false)
|
public bool Download(BeatmapSetInfo model, bool minimiseDownloadSize = false)
|
||||||
{
|
{
|
||||||
return beatmapModelDownloader.Download(model, minimiseDownloadSize);
|
return beatmapModelDownloader.Download(model, minimiseDownloadSize);
|
||||||
|
@ -86,7 +86,7 @@ namespace osu.Game.Overlays.BeatmapListing.Panels
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
beatmaps.Download(new BeatmapSetInfo { OnlineBeatmapSetID = beatmapSet.OnlineID }, noVideoSetting.Value);
|
beatmaps.Download(beatmapSet, noVideoSetting.Value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -108,7 +108,7 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
beatmaps.Download(new BeatmapSetInfo { OnlineBeatmapSetID = beatmapSet.OnlineID }, noVideo);
|
beatmaps.Download(beatmapSet, noVideo);
|
||||||
};
|
};
|
||||||
|
|
||||||
localUser.BindTo(api.LocalUser);
|
localUser.BindTo(api.LocalUser);
|
||||||
|
Loading…
Reference in New Issue
Block a user