1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 02:03:51 +08:00

public CheckCurrentModCanBeSave

This commit is contained in:
cdwcgt 2023-03-11 11:39:35 +09:00
parent 8b0f127ff2
commit 1cd565193e

View File

@ -100,7 +100,7 @@ namespace osu.Game.Overlays.Mods
new OsuMenuItem(CommonStrings.ButtonsDelete, MenuItemType.Destructive, () => dialogOverlay?.Push(new DeleteModPresetDialog(Preset))),
};
if (checkCurrentModCanBeSave())
if (CheckCurrentModCanBeSave())
{
menu.Insert(1, new OsuMenuItem("Use Current Mods", MenuItemType.Destructive, () => SaveCurrentMod()));
}
@ -113,7 +113,7 @@ namespace osu.Game.Overlays.Mods
public bool SaveCurrentMod()
{
if (!checkCurrentModCanBeSave())
if (!CheckCurrentModCanBeSave())
return false;
Preset.PerformWrite(s =>
@ -123,7 +123,7 @@ namespace osu.Game.Overlays.Mods
return true;
}
private bool checkCurrentModCanBeSave() => (!Active.Value && selectedMods.Value.Any());
public bool CheckCurrentModCanBeSave() => (!Active.Value && selectedMods.Value.Any());
protected override void Dispose(bool isDisposing)
{