1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +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
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);
}
}
@ -256,8 +256,8 @@ namespace osu.Game.Database
// user requested abort
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);
}
}