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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user