1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 07:18:45 +08:00

Only enable button if there are multiple difficulties

This commit is contained in:
Salman Alshamrani 2024-11-24 00:34:03 -05:00
parent 8e20dc7e9d
commit e348b3a7aa

View File

@ -113,7 +113,7 @@ namespace osu.Game.Screens.Edit.Setup
beatmaps.AddFile(set, stream, newFilename);
working.Value.Metadata.BackgroundFile = newFilename;
updateAllDifficultiesButton.Enabled.Value = true;
updateAllDifficultiesButton.Enabled.Value = set.Beatmaps.Count > 1;
editorBeatmap.SaveState();
@ -152,7 +152,7 @@ namespace osu.Game.Screens.Edit.Setup
beatmaps.AddFile(set, stream, newFilename);
working.Value.Metadata.AudioFile = newFilename;
updateAllDifficultiesButton.Enabled.Value = true;
updateAllDifficultiesButton.Enabled.Value = set.Beatmaps.Count > 1;
editorBeatmap.SaveState();
music.ReloadCurrentTrack();