mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Save skin editor changes on forced exit
This commit is contained in:
parent
494a1b01a5
commit
9df08560b6
@ -108,7 +108,7 @@ namespace osu.Game.Skinning.Editor
|
||||
{
|
||||
Text = "Save Changes",
|
||||
Width = 140,
|
||||
Action = save,
|
||||
Action = Save,
|
||||
},
|
||||
new DangerousTriangleButton
|
||||
{
|
||||
@ -192,7 +192,7 @@ namespace osu.Game.Skinning.Editor
|
||||
}
|
||||
}
|
||||
|
||||
private void save()
|
||||
public void Save()
|
||||
{
|
||||
SkinnableElementTargetContainer[] targetContainers = targetScreen.ChildrenOfType<SkinnableElementTargetContainer>().ToArray();
|
||||
|
||||
|
@ -92,8 +92,10 @@ namespace osu.Game.Skinning.Editor
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
skinEditor?.Save();
|
||||
skinEditor?.Hide();
|
||||
skinEditor?.Expire();
|
||||
|
||||
skinEditor = null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user