1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:13:34 +08:00

Switch to const string

This commit is contained in:
Brandon 2024-02-18 22:12:03 -08:00
parent c6ca812ea0
commit 413b7aab60

View File

@ -361,12 +361,12 @@ namespace osu.Game.Beatmaps
/// </summary>
public void DeleteVideos(List<BeatmapSetInfo> items, bool silent = false)
{
var noVideosMessage = "No videos found to delete!";
const string no_videos_message = "No videos found to delete!";
if (items.Count == 0)
{
if (!silent)
PostNotification?.Invoke(new ProgressCompletionNotification { Text = noVideosMessage });
PostNotification?.Invoke(new ProgressCompletionNotification { Text = no_videos_message });
return;
}
@ -374,7 +374,7 @@ namespace osu.Game.Beatmaps
{
Progress = 0,
Text = $"Preparing to delete all {HumanisedModelName} videos...",
CompletionText = noVideosMessage,
CompletionText = no_videos_message,
State = ProgressNotificationState.Active,
};