1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +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> /// </summary>
public void DeleteVideos(List<BeatmapSetInfo> items, bool silent = false) 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 (items.Count == 0)
{ {
if (!silent) if (!silent)
PostNotification?.Invoke(new ProgressCompletionNotification { Text = noVideosMessage }); PostNotification?.Invoke(new ProgressCompletionNotification { Text = no_videos_message });
return; return;
} }
@ -374,7 +374,7 @@ namespace osu.Game.Beatmaps
{ {
Progress = 0, Progress = 0,
Text = $"Preparing to delete all {HumanisedModelName} videos...", Text = $"Preparing to delete all {HumanisedModelName} videos...",
CompletionText = noVideosMessage, CompletionText = no_videos_message,
State = ProgressNotificationState.Active, State = ProgressNotificationState.Active,
}; };