mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Make notification cannot cancel when Saving Zip Archive
This operation cannot be stopped(if not dispose stream). so make it cannot cancel
This commit is contained in:
@ -56,6 +56,9 @@ namespace osu.Game.Database
|
||||
/// <returns></returns>
|
||||
public virtual async Task ExportASync(IHasGuidPrimaryKey uuid)
|
||||
{
|
||||
bool canCancel = true;
|
||||
Notification.CancelRequested += () => canCancel;
|
||||
|
||||
Guid id = uuid.ID;
|
||||
await Task.Run(() =>
|
||||
{
|
||||
@ -91,6 +94,7 @@ namespace osu.Game.Database
|
||||
}
|
||||
|
||||
Notification.Text = "Saving Zip Archive...";
|
||||
canCancel = false;
|
||||
archive.SaveTo(OutputStream);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user