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:
parent
8e20dc7e9d
commit
e348b3a7aa
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user