mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 20:33:35 +08:00
Don't show progress in quit notification if no progress has been made (#37035)
Fixes this <img width="1423" height="830" alt="image" src="https://github.com/user-attachments/assets/db4a776a-837f-4771-aecc-d9e7b78fb840" />
This commit is contained in:
committed by
GitHub
Unverified
parent
ed6ec8b417
commit
b98cf42bd3
@@ -38,7 +38,13 @@ namespace osu.Game.Screens.Menu
|
||||
if (notifications.HasOngoingOperations)
|
||||
{
|
||||
var ongoingOperations = notifications.OngoingOperations.ToArray();
|
||||
string ongoingOperationsText = ongoingOperations.Take(10).Aggregate(string.Empty, (current, n) => current + $"{n.Text} ({n.Progress:0%})\n");
|
||||
string ongoingOperationsText = ongoingOperations.Take(10).Aggregate(string.Empty, (current, n) =>
|
||||
{
|
||||
if (n.Progress > 0)
|
||||
return current + $"{n.Text} ({n.Progress:0%})\n";
|
||||
|
||||
return current + $"{n.Text}\n";
|
||||
});
|
||||
|
||||
LocalisableString ongoingOperationsLocalisableString;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user