1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 18:47:27 +08:00

Apply same logic fixes to delete/restore all notifications

This commit is contained in:
Dean Herbert 2018-03-22 11:28:40 +09:00
parent 625e561fc8
commit 101caf3064

View File

@ -220,8 +220,8 @@ namespace osu.Game.Database
// user requested abort // user requested abort
return; return;
notification.Text = $"Deleting ({i} of {items.Count})"; notification.Progress = (float)i / items.Count;
notification.Progress = (float)++i / items.Count; notification.Text = $"Deleting ({++i} of {items.Count})";
Delete(b); Delete(b);
} }
} }
@ -256,8 +256,8 @@ namespace osu.Game.Database
// user requested abort // user requested abort
return; return;
notification.Text = $"Restoring ({i} of {items.Count})"; notification.Progress = (float)i / items.Count;
notification.Progress = (float)++i / items.Count; notification.Text = $"Restoring ({++i} of {items.Count})";
Undelete(item); Undelete(item);
} }
} }