mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 01:42:55 +08:00
Switch to const string
This commit is contained in:
parent
c6ca812ea0
commit
413b7aab60
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user