1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 19:41:06 +08:00

Ensure a state is saved when committing metadata to trigger pending changes flow

This commit is contained in:
Dean Herbert
2025-04-03 18:49:18 +09:00
Unverified
parent ce288023fe
commit f19fa73fb2
@@ -71,6 +71,11 @@ namespace osu.Game.Screens.Edit.Setup
// Apply immediately on any change to ensure that if the user hits Ctrl+S after making a change (without committing)
// it will still apply to the beatmap.
item.Current.BindValueChanged(_ => applyMetadata());
item.OnCommit += (_, newText) =>
{
if (newText)
Beatmap.SaveState();
};
}
updateReadOnlyState();