1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Use different copy when auto-downloading

This commit is contained in:
Bartłomiej Dach 2023-09-18 14:54:25 +02:00
parent 3bddf4bf9a
commit 4cdd19bb5a
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View File

@ -50,8 +50,6 @@ namespace osu.Game.Database
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
Text = NotificationsStrings.MissingBeatmapForReplay;
realmSubscription = realm.RegisterForNotifications(
realm => realm.All<BeatmapSetInfo>().Where(s => !s.DeletePending), beatmapsChanged);
@ -75,6 +73,8 @@ namespace osu.Game.Database
if (autoDownloadConfig.Value)
beatmapDownloader.Download(beatmapSetInfo, noVideoSetting.Value);
Text = autoDownloadConfig.Value ? NotificationsStrings.DownloadingBeatmapForReplay : NotificationsStrings.MissingBeatmapForReplay;
}
protected override void Update()

View File

@ -98,6 +98,11 @@ Please try changing your audio device to a working setting.");
/// </summary>
public static LocalisableString MissingBeatmapForReplay => new TranslatableString(getKey(@"missing_beatmap_for_replay"), @"You do not have the beatmap for this replay.");
/// <summary>
/// "Downloading missing beatmap for this replay..."
/// </summary>
public static LocalisableString DownloadingBeatmapForReplay => new TranslatableString(getKey(@"downloading_beatmap_for_replay"), @"Downloading missing beatmap for this replay...");
/// <summary>
/// "Your local copy of the beatmap for this replay appears to be different than expected. You may need to update or re-download it."
/// </summary>