mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Moved "undelete all" logic to BeatmapManager and added a progress notification
This commit is contained in:
@ -62,11 +62,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
Action = () =>
|
||||
{
|
||||
undeleteButton.Enabled.Value = false;
|
||||
Task.Run(() =>
|
||||
{
|
||||
foreach (var bs in beatmaps.QueryBeatmapSets(bs => bs.DeletePending).ToList())
|
||||
beatmaps.Undelete(bs);
|
||||
}).ContinueWith(t => Schedule(() => undeleteButton.Enabled.Value = true));
|
||||
Task.Run(() => beatmaps.UndeleteAll()).ContinueWith(t => Schedule(() => undeleteButton.Enabled.Value = true));
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user