mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 18:07:25 +08:00
Export instead of ExportCurrentSkin
This commit is contained in:
parent
6900d0120a
commit
6ef5b2733f
@ -158,7 +158,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
skins.ExporCurrenttSkin();
|
skins.CurrentSkinInfo.Value.PerformRead(s => skins.ExportSkin(s));
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -287,7 +287,7 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
public Task<Live<SkinInfo>> Import(ImportTask task, bool batchImport = false, CancellationToken cancellationToken = default) => skinImporter.Import(task, batchImport, cancellationToken);
|
public Task<Live<SkinInfo>> Import(ImportTask task, bool batchImport = false, CancellationToken cancellationToken = default) => skinImporter.Import(task, batchImport, cancellationToken);
|
||||||
|
|
||||||
public void ExporCurrenttSkin() => CurrentSkinInfo.Value.PerformRead(s => skinExporter.ExportAsync(s));
|
public Task ExportSkin(SkinInfo skin) => skinExporter.ExportAsync(skin);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user