Add GetDisplayString() extension to handle all model interface types globally

This commit is contained in:
Bartłomiej Dach
2021-11-09 13:34:56 +01:00
parent a1b55d6490
commit 5ec8288508
3 changed files with 65 additions and 2 deletions

View File

@ -8,6 +8,7 @@ using System.Threading.Tasks;
using Humanizer;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Extensions;
using osu.Game.Online.API;
using osu.Game.Overlays.Notifications;
@ -50,7 +51,7 @@ namespace osu.Game.Database
DownloadNotification notification = new DownloadNotification
{
Text = $"Downloading {request.Model}",
Text = $"Downloading {request.Model.GetDisplayString()}",
};
request.DownloadProgressed += progress =>